diff options
author | herbelin <herbelin@85f007b7-540e-0410-9357-904b9bb8a0f7> | 2000-01-07 22:19:13 +0000 |
---|---|---|
committer | herbelin <herbelin@85f007b7-540e-0410-9357-904b9bb8a0f7> | 2000-01-07 22:19:13 +0000 |
commit | 4fb95ddde5870ab484f9d154bd406f344e6f88d5 (patch) | |
tree | 81cb602b000bc67e7f37f5d96479e4d7b1aa0310 /parsing/extend.mli | |
parent | 46e708f92deef78043f4f221293df131e29aeff1 (diff) |
Restructuration printer et parser
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@263 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'parsing/extend.mli')
-rw-r--r-- | parsing/extend.mli | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/parsing/extend.mli b/parsing/extend.mli index 7f9a5f569..8fe219d45 100644 --- a/parsing/extend.mli +++ b/parsing/extend.mli @@ -34,8 +34,9 @@ type grammar_command = { gc_univ : string; gc_entries : grammar_entry list } -val gram_assoc: Coqast.t -> Gramext.g_assoc option -val gram_of_ast: string -> Coqast.t list -> grammar_command +val gram_assoc : Coqast.t -> Gramext.g_assoc option + +val interp_grammar_command : string -> Coqast.t list -> grammar_command (*s Pretty-print. *) @@ -50,10 +51,9 @@ type parenRelation = L | E | Any highest precedence), and the child's one, follow the given relation. *) -val tolerable_prec : ((string * precedence) * parenRelation) option -> - (string * precedence) -> bool +type tolerability = (string * precedence) * parenRelation -val prec_of_ast : Coqast.t -> precedence +val tolerable_prec : tolerability option -> (string * precedence) -> bool (* unparsing objects *) @@ -65,7 +65,7 @@ type ppbox = | PpTB type unparsing_hunk = - | PH of Ast.pat * string option * parenRelation + | PH of Ast.pat * (string * tolerability option) option * parenRelation | RO of string | UNP_BOX of ppbox * unparsing_hunk list | UNP_BRK of int * int @@ -83,8 +83,10 @@ type syntax_entry = { syn_astpat : Ast.pat; syn_hunks : unparsing_hunk list } -val rule_of_ast : string -> precedence -> Coqast.t -> syntax_entry +type syntax_command = { + sc_univ : string; + sc_entries : syntax_entry list } -val level_of_ast : string -> Coqast.t -> syntax_entry list +val interp_syntax_entry : string -> Coqast.t list -> syntax_command |