Commit 68b12c4c authored by Yann Régis-Gianas's avatar Yann Régis-Gianas

Lexer: Forbid producer identifier of the form _[0-9]+.

parent c781e458
......@@ -312,6 +312,11 @@ rule main = parse
{ STAR }
| "+"
{ PLUS }
| "_" ['0'-'9']+
{ Error.errorp
(Positions.with_poss (lexeme_start_p lexbuf) (lexeme_end_p lexbuf) ())
"identifiers of the form _0, _1, _2, ..., are reserved."
}
| (lowercase identchar *) as id
{ if Hashtbl.mem reserved id then
Error.errorp
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment