X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=matita%2Fcomponents%2Fgrafite_parser%2FgrafiteParser.mli;h=1d006437928afb15223effad0862e6c0f3eb5055;hb=f7da48c844105a52a705872dfa0d4104de010c82;hp=451c17c68aa99b8e02d6e8b281aa2238f7aebe26;hpb=39b205d12af34c0c8d6e691da2628bc386b70cf2;p=helm.git diff --git a/matita/components/grafite_parser/grafiteParser.mli b/matita/components/grafite_parser/grafiteParser.mli index 451c17c68..1d0064379 100644 --- a/matita/components/grafite_parser/grafiteParser.mli +++ b/matita/components/grafite_parser/grafiteParser.mli @@ -23,12 +23,6 @@ * http://helm.cs.unibo.it/ *) -type 'a localized_option = - LSome of 'a - | LNone of GrafiteAst.loc - -type ast_statement = GrafiteAst.statement - type db class type g_status = @@ -37,10 +31,10 @@ class type g_status = method parser_db: db end -class status : +class virtual status : object('self) + inherit g_status inherit CicNotationParser.status - method parser_db : db method set_parser_db : db -> 'self method set_parser_status : 'status. #g_status as 'status -> 'self end @@ -53,7 +47,7 @@ val extend : #status as '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