X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=matita%2Fcomponents%2Fgrafite_parser%2FgrafiteParser.mli;h=1d006437928afb15223effad0862e6c0f3eb5055;hb=a64572b00ce40f476577bf827488d23ddf763120;hp=4e4b035abdca243abfd2d2f9baf5305ca4e0b1f6;hpb=f3f6b451707a3feb8245717e3fa7ca25df0ce8ef;p=helm.git diff --git a/matita/components/grafite_parser/grafiteParser.mli b/matita/components/grafite_parser/grafiteParser.mli index 4e4b035ab..1d0064379 100644 --- a/matita/components/grafite_parser/grafiteParser.mli +++ b/matita/components/grafite_parser/grafiteParser.mli @@ -23,34 +23,31 @@ * http://helm.cs.unibo.it/ *) -type 'a localized_option = - LSome of 'a - | LNone of GrafiteAst.loc - -type ast_statement = GrafiteAst.statement - -exception NoInclusionPerformed of string (* full path *) - type db class type g_status = object - inherit LexiconEngine.g_status + inherit CicNotationParser.g_status method parser_db: db end -class status : +class virtual status : object('self) - inherit LexiconEngine.status - method parser_db : db + inherit g_status + inherit CicNotationParser.status method set_parser_db : db -> 'self method set_parser_status : 'status. #g_status as 'status -> 'self end +val extend : #status as 'status -> + CicNotationParser.checked_l1_pattern -> + (NotationEnv.t -> NotationPt.location -> NotationPt.term) -> 'status + + (* never_include: do not call LexiconEngine to do includes, * always raise NoInclusionPerformed *) (** @raise End_of_file *) -val parse_statement: - #status -> - Ulexing.lexbuf -> - ast_statement localized_option +type parsable +val parsable_statement: #status -> Ulexing.lexbuf -> parsable +val parse_statement: #status -> parsable -> GrafiteAst.statement +val strm_of_parsable: parsable -> Ulexing.lexbuf