]> matita.cs.unibo.it Git - helm.git/blobdiff - matita/components/grafite_parser/grafiteParser.mli
HUGE COMMIT:
[helm.git] / matita / components / grafite_parser / grafiteParser.mli
index 3e3f40e13183d3fbd10e8bcef2b2e3f8365adf9a..aa0fb5bdee9764f6edc70990f57a15d9c0304d64 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 =
@@ -37,7 +31,7 @@ class type g_status =
   method parser_db: db
  end
 
-class status :
+class virtual status :
  object('self)
   inherit g_status
   inherit CicNotationParser.status
@@ -53,7 +47,6 @@ 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