ianh / owl

A parser generator for visibly pushdown languages.
MIT License
746 stars 21 forks source link

Reserved words for field names #6

Closed ianh closed 6 years ago

ianh commented 6 years ago

The grammar

a = identifier@return

won't compile because return is a C keyword.

We need to reserve all the C keywords, along with range and type (because these conflict with built-in fields).

mqudsi commented 6 years ago

Yup, I just ran into this with for, switch, while, and if. (I just renamed them to for_block, while_block, etc.)

ianh commented 6 years ago

Should be fixed with 9d8d70c.