Commit 24fed483 authored by Axel Ribon's avatar Axel Ribon Committed by Pierre Brandone
Browse files

lexical_specifications: use regexes

* source/reference_manual/tiger_language_reference_manual/lexical_specifications/identifiers: Here.
parent 26aae42f
Pipeline #32025 canceled with stage
in 9 seconds
letter = "a" | "b" | "c" | "d" | "e" | "f" | "g" | "h" | "i" | "j" | "k" | "l" | "m"
| "n" | "o" | "p" | "q" | "r" | "s" | "t" | "u" | "v" | "w" | "x" | "y" | "z"
| "A" | "B" | "C" | "D" | "E" | "F" | "G" | "H" | "I" | "J" | "K" | "L" | "M"
| "N" | "O" | "P" | "Q" | "R" | "S" | "T" | "U" | "V" | "W" | "X" | "Y" | "Z" ;
digit = "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" ;
letter = [a-zA-Z] ;
digit = [0-9] ;
id = letter { letter | digit | "_" } | "_main" ;
Supports Markdown
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