]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/ocaml/cic_disambiguation/cicTextualLexer2.ml
- added support for implicit in concrete syntax
[helm.git] / helm / ocaml / cic_disambiguation / cicTextualLexer2.ml
index b339b8dc47101cfc4ef9b85deeaf28480e1a94ee..bcc8fda28486221bbafa1bbd17c65eac1de52cf9 100644 (file)
@@ -40,6 +40,7 @@ let regexp ident_cont' = ident_cont | tex_token
 let regexp ident = (alpha ident_cont*) | ('_' ident_cont+)
 let regexp ident' = ((alpha | tex_token) ident_cont'*) | ('_' ident_cont'+)
 let regexp paren = [ '(' '[' '{' ')' ']' '}' ]
+let regexp implicit = '?'
 let regexp meta = '?' num
 let regexp qstring = '"' [^ '"']* '"'
 let regexp uri =
@@ -99,6 +100,7 @@ let rec token = lexer
   | num -> return lexbuf ("NUM", Ulexing.utf8_lexeme lexbuf)
   | paren -> return lexbuf ("PAREN", Ulexing.utf8_lexeme lexbuf)
   | meta -> return lexbuf ("META", Ulexing.utf8_lexeme lexbuf)
+  | implicit -> return lexbuf ("IMPLICIT", Ulexing.utf8_lexeme lexbuf)
   | qstring ->
       let lexeme = Ulexing.utf8_lexeme lexbuf in
       let s = String.sub lexeme 1 (String.length lexeme - 2) in