]> matita.cs.unibo.it Git - helm.git/commitdiff
factorized an ast_statement type which is (now) used from outside this module
authorStefano Zacchiroli <zack@upsilon.cc>
Thu, 23 Feb 2006 21:32:24 +0000 (21:32 +0000)
committerStefano Zacchiroli <zack@upsilon.cc>
Thu, 23 Feb 2006 21:32:24 +0000 (21:32 +0000)
components/grafite_parser/grafiteParser.ml
components/grafite_parser/grafiteParser.mli

index 73d6bf66ac5e3f8c37865cacbd7719fb092cf8eb..aa10bdcf315e2e436b4f45479df51bd5397cda33 100644 (file)
@@ -31,15 +31,17 @@ module Ast = CicNotationPt
 
 type 'a localized_option =
    LSome of 'a
- | LNone of Token.flocation
+ | LNone of GrafiteAst.loc
 
-type statement =
- include_paths:string list ->
- LexiconEngine.status ->
-  LexiconEngine.status *
+type ast_statement =
   (CicNotationPt.term, CicNotationPt.term,
    CicNotationPt.term GrafiteAst.reduction, CicNotationPt.obj, string)
-    GrafiteAst.statement localized_option
+    GrafiteAst.statement
+
+type statement =
+  include_paths:string list ->
+  LexiconEngine.status ->
+    LexiconEngine.status * ast_statement localized_option
 
 let grammar = CicNotationParser.level2_ast_grammar
 
index 6a1980011409c790625df02005b9cb17d70c26ae..cb88940ffde19daea908157bc497b83acc0c4a3b 100644 (file)
 
 type 'a localized_option =
    LSome of 'a
- | LNone of Token.flocation
+ | LNone of GrafiteAst.loc
 
-type statement =
- include_paths:string list ->
- LexiconEngine.status ->
-  LexiconEngine.status *
+type ast_statement =
   (CicNotationPt.term, CicNotationPt.term,
    CicNotationPt.term GrafiteAst.reduction, CicNotationPt.obj, string)
-    GrafiteAst.statement localized_option
+    GrafiteAst.statement
+
+type statement =
+  include_paths:string list ->
+  LexiconEngine.status ->
+    LexiconEngine.status * ast_statement localized_option
 
 val parse_statement: Ulexing.lexbuf -> statement  (** @raise End_of_file *)