[antlr-interest] NoViableAltException this time
Simon zack
simonzack at gmail.com
Thu Mar 25 05:27:35 PDT 2010
tried using namespace_specification to interpret the string, but the error
still shows up
I changed the code a little, but a new exception pops up
this only works when I remove the exception_info, however adding it messes
up things
[code]
grammar test;
exception_info
:
'.exception'
;
namespace_specification
:
ns_id1 = IDENTIFIER ('.' ns_idx = IDENTIFIER)*
//ns_id1 = IDENTIFIER ( '.' ns_idx = IDENTIFIER)*
;
IDENTIFIER
: LETTER (LETTER|'0'..'9')*
;
fragment LETTER
: '$'
| 'A'..'Z'
| 'a'..'z'
| '_'
;
[/code]
thanks
More information about the antlr-interest
mailing list