[il-antlr-interest: 23991] Re: [antlr-interest] Regarding lexer rules return values

2009-06-03 Thread Raghavendra Anjana (RBEI/EMT2)
Hello Dave, I have used the parser rule with some modifications and started working Thanks a lot for your suggestion.. Regards Raghavendra From: Dave Dutcher [mailto:d...@tridecap.com] Sent: Tuesday, 2. June 2009 8:10 PM To: Raghavendra Anjana (RBEI/EMT2

[il-antlr-interest: 23962] [antlr-interest] Regarding lexer rules return values

2009-06-02 Thread Raghavendra Anjana (RBEI/EMT2)
Hello, I have a grammar with a parser rule as shown below parserrule: (LEXERRULE); LEXERRULE: (LEXERRULE1)(LEXERRULE2)(LEXERRULE3); Whenever my parser rule is recognized I want to return the text identified for LEXERRULE1,2,3 separately. But I believe that we cannot return values from a lexe

[il-antlr-interest: 23611] [antlr-interest] Regarding lexer rules return values

2009-05-08 Thread Raghavendra Anjana (RBEI/EMT2)
Hello, I have a grammar with a parser rule as shown below parserrule: (LEXERRULE); LEXERRULE: (LEXERRULE1)(LEXERRULE2)(LEXERRULE3); Whenever my parser rule is recognized I want to return the text identified for LEXERRULE1,2,3 separately. But I believe that we cannot return values from a lexe

[il-antlr-interest: 23417] [antlr-interest] Regarding handling of special characters

2009-04-28 Thread Raghavendra Anjana (RBEI/EMT2)
Hello, I am new to antlr. I have a peculiar problem working with special characters in my grammar. I have some special characters to be parsed by my grammar. I am getting an error like "line 18685:2 no viable alternative at character 'Ü'". Which I assume is because my parser is unable to iden