lin q
2012-12-10 04:26:11 UTC
Hi,
I am using ANTLR v3.4, I see the same problem in ANTLRWorks and diagram
generated from command line ( maybe they are the same engine). I have the
following grammar snippet:
my_cmd
: 'start'
'match' ('-index' | '-name' | '-value' | '-element' | '-all' | '--')
;
In the diagram, the alternatives show as {'--'..'-name', '-value'}.
Adding backslash to escape '-' does not help.
I verified that this is on diagram only, grammar is still running as
expected.
List: http://www.antlr.org/mailman/listinfo/antlr-interest
Unsubscribe: http://www.antlr.org/mailman/options/antlr-interest/your-email-address
I am using ANTLR v3.4, I see the same problem in ANTLRWorks and diagram
generated from command line ( maybe they are the same engine). I have the
following grammar snippet:
my_cmd
: 'start'
'match' ('-index' | '-name' | '-value' | '-element' | '-all' | '--')
;
In the diagram, the alternatives show as {'--'..'-name', '-value'}.
Adding backslash to escape '-' does not help.
I verified that this is on diagram only, grammar is still running as
expected.
List: http://www.antlr.org/mailman/listinfo/antlr-interest
Unsubscribe: http://www.antlr.org/mailman/options/antlr-interest/your-email-address