Hi guys,
Still fairly new to ANTLR, but have done a couple of combined grammars successfully with associated Visitors in java, however I have not been able to fix this bug...
See attached for the .g4
With this input:
S @ 0 { B = 24, A = 24.4 };
I get this error trace from java:
line 1:2 token recognition error at: '@'
line 1:0 mismatched input 'S' expecting {<EOF>, 'S', 'C'}
line 1:6 token recognition error at: '{'
line 1:14 token recognition error at: ','
line 1:25 token recognition error at: '}'
But it's specifically the first two that I can't resolve.
Changing
to
(and altering the input respectively) fixes the '@' error.
I have no idea why this is, I'd much prefer to use '@'
The second one I can't seem to resolve at all. Even removing the other options I still get
line 1:0 mismatched input 'S' expecting 'S'
The same grammar and input run fine in Testrig from within Antlrworks2
Help much appreciated!