[il-antlr-interest: 27331] [antlr-interest] question about lexer rules

2009-12-19 Thread codeman
A question to lexer rules and its priorities. Is there any dependency between order of lexer rule definitions? Some time ago I had some trouble: TIME: (DIGIT+'h' |DIGIT+'m' |DIGIT+'s' |DIGIT+'h'+DIGIT+'m' |DIGIT+'h'+DIGIT

[il-antlr-interest: 27332] [antlr-interest] help regarding language translators

2009-12-19 Thread Bujji
Hi all, I see most of the examples from the antlr grammar examples are only for recognizing the tokens(grammar) actions are not implemented. for suppose python language grammar implemented for Python3 and other examples are only for recognizing the keywords. there is nothing implemented for action

[il-antlr-interest: 27334] Re: [antlr-interest] help regarding language translators

2009-12-19 Thread Terence Parr
first. check out the new book: http://pragprog.com/titles/tpdsl/language-implementation-patterns Then note that there are some examples on the wiki like my simple C compiler with ANTLR+LLVM. http://www.antlr.org/wiki/display/ANTLR3/Examples Ter On Dec 19, 2009, at 3:42 AM, Bujji wrote: > Hi

[il-antlr-interest: 27335] Re: [antlr-interest] question about lexer rules

2009-12-19 Thread Gavin Lambert
At 22:24 19/12/2009, code...@bytefusion.de wrote: >A question to lexer rules and its priorities. Is there any >dependency between order of lexer rule definitions? [...] >My understanding of lexer rules is, the best rule will >match. The best rule is the rule matching the most >characters. But

[il-antlr-interest: 27336] [antlr-interest] Why java heap error In the grammar

2009-12-19 Thread 屈汉图
Hi all: I've write sql select statement grammar by antlr , after i make a copy of the grammar file and alter all the literal with 'SELECT' instead of SELECT :'SELECT' etc .but i find a strange problem ,after do this ,when do debug ,antlr complain java heap error ,can some one tell me w