[il-antlr-interest: 23682] Re: [antlr-interest] SQL grammar

2009-05-13 Thread wirving
Hi, From sequence I guess it's PL/SQL. If it is, then a PL/SQL grammar is a good starting point: http://antlr.org/grammar/1209225566284/PLSQL3.g Although I haven't tried this yet. Zoli Hi, Could anybody help me with writing a grammar that does the following: Parsing values that are

[il-antlr-interest: 23605] [antlr-interest] Problem with a Tree Grammar: MismatchedTokenException

2009-05-08 Thread wirving
Helo, I'm trying to create a Tree Grammar to walk my ASTs, and I encountered a problem: I have these tree grammar rules (which are relevant, I guess): query_specification : ^(selectClause (^(INTO intoClause))? (^(FROM fromClause))? (^(WHERE whereClause))? (^(GROUP groupbyClause))?

[il-antlr-interest: 23571] [antlr-interest] java.lang.StackOverflowError

2009-05-07 Thread wirving
Helo! I want to create a Tree Grammar from my normal grammar (with the method described in the ANTLR book), and after I corrected some obvious errors (remove AST operators, etc.) I got this one: Exception in thread Thread-5 java.lang.StackOverflowError at

[il-antlr-interest: 23573] Re: [antlr-interest] java.lang.StackOverflowError

2009-05-07 Thread wirving
thanks, now I got different errors (warnings I guess): error(10): internal error: org.antlr.tool.Grammar.createLookaheadDFA(Grammar.java:1242): could not even do k=1 for decision 8; reason: timed out (1000ms) error(10): internal error: