Hi,
SableCC reserves uppercase letters for its own keywords. As a consequence, you can use any (lowercase) identifier you like in your grammars, as none is lost to reserved keywords.
If you wish to really highlight tokens in your grammars, you can preceed references to tokens with "T.". For example:
if_statement = T.if T.l_par exp T.r_par statement;
Have fun!
Etienne
Etienne Gagnon, Ph.D.
http://sablecc.org
Hi,
SableCC reserves uppercase letters for its own keywords. As a consequence, you can use any (lowercase) identifier you like in your grammars, as none is lost to reserved keywords.
If you wish to really highlight tokens in your grammars, you can preceed references to tokens with "T.". For example:
if_statement = T.if T.l_par exp T.r_par statement;
Have fun!