Skip to content
Snippets Groups Projects
Commit 65dc8186 authored by Erwan Jahier's avatar Erwan Jahier
Browse files

Fix a bug in the lexer: the definition of TK_STRING (used when

including files) was wrong (well, at least, too restrictive, numbers
were forbidden in file names...).
parent 9bdf9d6e
No related branches found
No related tags found
No related merge requests found
......@@ -107,7 +107,7 @@ let token_code tk = (
| TK_ICONST lxm -> ("TK_ICONT" , lxm)
| TK_IDENT lxm -> ("TK_IDENT" , lxm)
| TK_LONGIDENT lxm -> ("TK_LONGIDENT" , lxm)
| TK_STRING lxm -> ("TK_STRING" , lxm)
| TK_STRING lxm -> ("TK_STRING" , lxm)
| TK_IF lxm -> ("TK_IF" , lxm)
| TK_IMPL lxm -> ("TK_IMPL" , lxm)
| TK_INT lxm -> ("TK_INT" , lxm)
......@@ -245,7 +245,7 @@ rule lexer = parse
}
(* une chaine quelconque *)
| "\"" ['A'-'Z' '(' ')' '$' '/' 'a'-'z' '.' '-' '_'] * "\""
| "\"" [^ '\"']* "\""
{
let lxm = Lxm.make_string lexbuf in
TK_STRING (lxm)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment