Hi, I am currently building a grammar for a scripting language and I am very happy with the tools. I do have one quick question about setting simple properties on Ast nodes generated using the language tool though. I had no problem setting a simple text property ( or even complex nested nodes for that matter), but I can't for the life of me figure out how to set a boolean property based on the inclusion of an optional terminal.
For a simple example, a variable declaration node might have a const bool, a type and a name. I want to set the value of the const property based on whether the optional const token precedes the variable declaration. Thanks for your time, Zach Heylmun