Here is the example. This ($type) is not recognised by ANTLR4.
Number //options { backtrack=true; }
: IntegerLiteral { $type = IntegerLiteral; }
| FloatLiteral { $type = FloatLiteral; }
| IntegerLiteral { $type = IntegerLiteral; }
;
What could this be replaced by?
Thank you.
In ANTLR v4, do: