Getting error

18 views
Skip to first unread message

Sourabh Gupta

unread,
Feb 19, 2017, 2:08:47 PM2/19/17
to antlr-discussion
I am getting error in this line  How can i resolve it


UNIQUEID : DIGIT+ ('.' DIGIT+)+ '.' DIGIT+ // OID 
| HEXCHAR+ ('-' HEXCHAR+)+ // UUID;

John B Brodie

unread,
Feb 20, 2017, 4:07:38 AM2/20/17
to antlr-di...@googlegroups.com

move the ';' on the second line to be BEFORE the '//'

--
You received this message because you are subscribed to the Google Groups "antlr-discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to antlr-discussi...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Sourabh Gupta

unread,
Feb 20, 2017, 6:02:50 AM2/20/17
to antlr-di...@googlegroups.com
i also tried this option but getting same error
you can also try

On Mon, Feb 20, 2017 at 2:37 PM, John B Brodie <john.b...@gmail.com> wrote:

move the ';' on the second line to be BEFORE the '//'


On 02/20/2017 03:08 AM, Sourabh Gupta wrote:
I am getting error in this line  How can i resolve it


UNIQUEID : DIGIT+ ('.' DIGIT+)+ '.' DIGIT+ // OID 
| HEXCHAR+ ('-' HEXCHAR+)+ // UUID;
--
You received this message because you are subscribed to the Google Groups "antlr-discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to antlr-discussion+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to a topic in the Google Groups "antlr-discussion" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/antlr-discussion/XG00XRAjRSI/unsubscribe.
To unsubscribe from this group and all its topics, send an email to antlr-discussion+unsubscribe@googlegroups.com.
Aql.g4

John B Brodie

unread,
Feb 20, 2017, 6:26:40 AM2/20/17
to antlr-di...@googlegroups.com

UNIQUEID : DIGIT+ ('.' DIGIT+)+ '.' DIGIT+ // OID

| HEXCHAR+ ('-' HEXCHAR+)+ ; //UUID


and change the rule named Query to query (because it is a parser rule and not a lexer rule)

these changes obtain a run-time java exception from the Antlr v4 tool --- for me --- looks like Antlr is having trouble generating the parser code for your very complex grammar ---- i think.

Hope this helps....
To unsubscribe from this group and stop receiving emails from it, send an email to antlr-discussi...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages