grammar: document identifiers

This commit is contained in:
Zack Buhman 2023-08-26 02:28:55 +00:00
parent 2a818d1c05
commit e6c3919d45

View File

@ -7,8 +7,11 @@ shift → andl ( ( "<<" | ">>" ) andl )*
andl → orl ( "&" orl )*
orl → andl ( ( "|" | "^" ) andl )*
primary → number
→ identifier
| "(" expression ")"
identifier → ( [a-z][A-Z][0-9][_] ) +
number → "%" base2-number
| "$" base16-number
| "0b" base2-number