I am creating a parser using CUP together with JFLex to create the scanner.
I was following this link Parse tree generation with Java CUP but I got stuck because I do not know how to change the type to Node because by default the type is Object.
I want the CUP case statements to look like the following
case 16:
{
Node RESULT =null; ... }
and not:
case 16:
{
Object RESULT =null; ...}