Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

You'd have to `|| EVERY_KEYWORD_IN_LANG`, and then if you ever add a keyword, now you're updating that list there, and anywhere else you've used it.

As the "Lexer hack" Wiki page says, this is only a problem if you're lexing in the first place. If you just parse the grammar, this isn't a problem.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: