I'm trying to build a grammar with the following:
NUMERIC: INTEGER | FLOAT | INFINITY | PI ... INFINITY: '∞' PI: 'π'
But Antlr refuses to load the grammar.
I'm trying to build a grammar with the following:
NUMERIC: INTEGER | FLOAT | INFINITY | PI ... INFINITY: '∞' PI: 'π'
But Antlr refuses to load the grammar.
Use the Java expression representing the Unicode character:
That will work up to '\uFFFF'; Java doesn't support five-digit Unicode.