(** {2 Parsing functions} *)
(** concrete syntax pattern: notation level 1 *)
-val parse_level1_pattern: char Stream.t -> CicNotationPt.term
+val parse_level1_pattern: Ulexing.lexbuf -> CicNotationPt.term
(** AST pattern: notation level 2 *)
-val parse_level2_ast: char Stream.t -> CicNotationPt.term
-val parse_level2_meta: char Stream.t -> CicNotationPt.term
+val parse_level2_ast: Ulexing.lexbuf -> CicNotationPt.term
+val parse_level2_meta: Ulexing.lexbuf -> CicNotationPt.term
(** {2 Grammar extension} *)
type rule_id
val extend:
- CicNotationPt.term ->
- ?precedence:int ->
- ?associativity:Gramext.g_assoc ->
+ CicNotationPt.term -> (* level 1 pattern *)
+ precedence:int ->
+ associativity:Gramext.g_assoc ->
(CicNotationEnv.t -> CicNotationPt.location -> CicNotationPt.term) ->
rule_id
val delete: rule_id -> unit
-(** {2 Standard precedences} *)
-
-val let_in_prec: int
-val binder_prec: int
-val apply_prec: int
-val simple_prec: int
-
-val let_in_assoc: Gramext.g_assoc
-val binder_assoc: Gramext.g_assoc
-val apply_assoc: Gramext.g_assoc
-val simple_assoc: Gramext.g_assoc
-
(** {2 Grammar entries}
* needed by grafite parser *)
val level2_ast_grammar: Grammar.g
val term : CicNotationPt.term Grammar.Entry.e
+
val let_defs :
- (CicNotationPt.capture_variable * CicNotationPt.term * int) list Grammar.Entry.e
+ (CicNotationPt.capture_variable * CicNotationPt.term * int) list
+ Grammar.Entry.e
(** {2 Debugging} *)