]> matita.cs.unibo.it Git - helm.git/blobdiff - matita/components/grafite_parser/grafiteParser.mli
Bug "fixed" (i.e avoided).
[helm.git] / matita / components / grafite_parser / grafiteParser.mli
index 11fbccaed53b286e4c5363375be058a8c2c330b8..1d006437928afb15223effad0862e6c0f3eb5055 100644 (file)
  * 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 =
  object
-  inherit LexiconTypes.g_status
+  inherit CicNotationParser.g_status
   method parser_db: db
  end
 
-class status :
+class virtual status :
  object('self)
-  inherit LexiconTypes.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
@@ -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