~ubuntu-branches/ubuntu/wily/coq-doc/wily

« back to all changes in this revision

Viewing changes to parsing/extend.ml

  • Committer: Bazaar Package Importer
  • Author(s): Stéphane Glondu, Stéphane Glondu, Samuel Mimram
  • Date: 2010-01-07 22:50:39 UTC
  • mfrom: (1.2.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20100107225039-n3cq82589u0qt0s2
Tags: 8.2pl1-1
[ Stéphane Glondu ]
* New upstream release (Closes: #563669)
  - remove patches
* Packaging overhaul:
  - use git, advertise it in Vcs-* fields of debian/control
  - use debhelper 7 and dh with override
  - use source format 3.0 (quilt)
* debian/control:
  - set Maintainer to d-o-m, set Uploaders to Sam and myself
  - add Homepage field
  - bump Standards-Version to 3.8.3
* Register PDF documentation into doc-base
* Add debian/watch
* Update debian/copyright

[ Samuel Mimram ]
* Change coq-doc's description to mention that it provides documentation in
  pdf format, not postscript, closes: #543545.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
(************************************************************************)
 
2
(*  v      *   The Coq Proof Assistant  /  The Coq Development Team     *)
 
3
(* <O___,, * CNRS-Ecole Polytechnique-INRIA Futurs-Universite Paris Sud *)
 
4
(*   \VV/  **************************************************************)
 
5
(*    //   *      This file is distributed under the terms of the       *)
 
6
(*         *       GNU Lesser General Public License Version 2.1        *)
 
7
(************************************************************************)
 
8
 
 
9
 
 
10
(*i $Id: extend.ml 7761 2005-12-30 10:52:19Z herbelin $ i*)
 
11
 
 
12
open Util
 
13
open Pp
 
14
open Gramext
 
15
open Names
 
16
open Ppextend
 
17
open Topconstr
 
18
open Genarg
 
19
 
 
20
(**********************************************************************)
 
21
(* constr entry keys                                                  *)
 
22
 
 
23
type side = Left | Right
 
24
 
 
25
type production_position =
 
26
  | BorderProd of side * Gramext.g_assoc option  (* true=left; false=right *)
 
27
  | InternalProd
 
28
 
 
29
type production_level =
 
30
  | NextLevel
 
31
  | NumLevel of int
 
32
 
 
33
type ('lev,'pos) constr_entry_key =
 
34
  | ETIdent | ETReference | ETBigint
 
35
  | ETConstr of ('lev * 'pos)
 
36
  | ETPattern
 
37
  | ETOther of string * string
 
38
  | ETConstrList of ('lev * 'pos) * Token.pattern list
 
39
 
 
40
type constr_production_entry =
 
41
    (production_level,production_position) constr_entry_key
 
42
type constr_entry =
 
43
    (int,unit) constr_entry_key
 
44
type simple_constr_production_entry =
 
45
    (production_level,unit) constr_entry_key
 
46
 
 
47
(**********************************************************************)
 
48
(* syntax modifiers                                                   *)
 
49
 
 
50
type syntax_modifier =
 
51
  | SetItemLevel of string list * production_level
 
52
  | SetLevel of int
 
53
  | SetAssoc of Gramext.g_assoc
 
54
  | SetEntryType of string * simple_constr_production_entry
 
55
  | SetOnlyParsing
 
56
  | SetFormat of string located
 
57