zetzit / zz

πŸΊπŸ™ ZetZ a zymbolic verifier and tranzpiler to bare metal C
MIT License
1.6k stars 52 forks source link

Inconsistent treatment of keywords in zz.pest #66

Open johnwcowan opened 4 years ago

johnwcowan commented 4 years ago

I think that for clarity keywords should always have key_* rules and should be in the keyword rule. In particular (this list may not be correct or complete):

The first group should be fixed just to improve readability, as it has no effect on the grammar accepted.

As for the second and third groups it may be that you don't want some of these keywords to be excluded from the identifiers, but I think context-sensitive keywords just make things more confusing. I recommend changing them all too, even though this will exclude some code that was formerly legal.