Use the [auto-keyword parser option from textx](http://www.igordejanovic.net/textX/parser_config/#automatic-keywords) instead of hoop-jumping our way.