X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Focaml%2Fcic_notation%2FcicNotationLexer.ml;fp=helm%2Focaml%2Fcic_notation%2FcicNotationLexer.ml;h=3c262ceec1854c27a502b9c56f1d8853a04bd430;hb=dbcc29c0e46454c7e31b485135900ceab38627e1;hp=8ad805c8dd36187be0ad0a1d4e86bfbe8f647104;hpb=7d425434a70ed1eae2ef83ebff5adbbbeeaec099;p=helm.git diff --git a/helm/ocaml/cic_notation/cicNotationLexer.ml b/helm/ocaml/cic_notation/cicNotationLexer.ml index 8ad805c8d..3c262ceec 100644 --- a/helm/ocaml/cic_notation/cicNotationLexer.ml +++ b/helm/ocaml/cic_notation/cicNotationLexer.ml @@ -43,6 +43,8 @@ let regexp keyword = '"' ident '"' let regexp implicit = '?' let regexp meta = implicit number +let regexp csymbol = '\'' ident + let regexp uri = ("cic:/" | "theory:/") (* schema *) ident ('/' ident)* (* path *) @@ -114,6 +116,7 @@ let rec token = lexer | tex_token -> return lexbuf (expand_macro lexbuf) | uri -> return lexbuf ("URI", Ulexing.utf8_lexeme lexbuf) | eof -> return lexbuf ("EOI", "") + | csymbol -> return lexbuf ("CSYMBOL", Ulexing.utf8_lexeme lexbuf) | _ -> return lexbuf ("SYMBOL", Ulexing.utf8_lexeme lexbuf) (* API implementation *)