[antlr-interest] (no subject)

Prados Valiente Enrique Enrique.PradosValiente at reale.es
Fri Aug 20 00:56:18 PDT 2010


Hi all,

 

 

I use AntlrWorks 1.4, and open PLSQL3.g file and do Generate -> Generate Code

 

And I get this error:

 

[09:46:44] error(206): PLSQL3.g:791:4: Alternative 2: after matching input such as ID DOT ID DOT ID DOT ID DOT decision cannot predict what comes next due to recursion overflow to expr_add from sql_expression and to expr_mul from expr_add

 

Log file is hs_err_pid5036.log

 

 

 

Now, I test with Antlr3.exe (.net) from here

 

ANTLR Tool Binaries

ANTLR v3.1.x binaries for .NET framework <http://www.antlr.org/download/ANTLR-3.1-2009-06-28.7z> . No dependence on the Java runtime. antlr3.exe and StringTemplate and ANTLR runtime libraries it depends on. Completely independent version written by Sam Harwell (ported from Java). 

 

I execute this command

E:\Trabajo\SqlParser\ANTLR\ANTLR-3.1-2009-06-28>Antlr3.exe E:\Trabajo\SqlParser\

ANTLR\plsql3.g

 

But I get this error:

 

error(10):  internal error:  : System.Exception: Error parsing E:\Trabajo\SqlPar

ser\ANTLR\plsql3.g: 'backtrack' not expected ';'

   en Antlr3.Tool.GrammarSpelunker.Match(String expecting) en c:\dev\stringtempl

ate_main\antlrcs\main\Antlr3\Tool\GrammarSpelunker.cs:línea 89

   en Antlr3.Tool.GrammarSpelunker.Options() en c:\dev\stringtemplate_main\antlr

cs\main\Antlr3\Tool\GrammarSpelunker.cs:línea 155

   en Antlr3.Tool.GrammarSpelunker.Parse() en c:\dev\stringtemplate_main\antlrcs

\main\Antlr3\Tool\GrammarSpelunker.cs:línea 112

   en Antlr3.AntlrTool.SortGrammarFiles() en c:\dev\stringtemplate_main\antlrcs\

main\Antlr3\AntlrTool.cs:línea 595

   en Antlr3.AntlrTool.Process() en c:\dev\stringtemplate_main\antlrcs\main\Antl

r3\AntlrTool.cs:línea 431

Match at offset 258 in file:line:column c:\dev\stringtemplate_main\antlrcs\main\

Antlr3\Tool\GrammarSpelunker.cs:89:17

 

Options at offset 89 in file:line:column c:\dev\stringtemplate_main\antlrcs\main

\Antlr3\Tool\GrammarSpelunker.cs:155:17

 

Parse at offset 332 in file:line:column c:\dev\stringtemplate_main\antlrcs\main\

Antlr3\Tool\GrammarSpelunker.cs:112:21

 

SortGrammarFiles at offset 166 in file:line:column c:\dev\stringtemplate_main\an

tlrcs\main\Antlr3\AntlrTool.cs:595:17

 

Process at offset 91 in file:line:column c:\dev\stringtemplate_main\antlrcs\main

\Antlr3\AntlrTool.cs:431:17

 

error(8):  file E:\Trabajo\SqlParser\ANTLR\plsql3.g contains grammar PLSQL3; nam

es must be identical

warning(200): E:\Trabajo\SqlParser\ANTLR\plsql3.g:776:3: Decision can match inpu

t such as "{'ASC', 'DESC'}" using multiple alternatives: 1, 2

As a result, alternative(s) 2 were disabled for that input

error(206): E:\Trabajo\SqlParser\ANTLR\plsql3.g:791:4: Alternative 2: after matc

hing input such as ID DOT ID DOT ID DOT ID DOT decision cannot predict what come

s next due to recursion overflow to expr_add from sql_expression and to expr_mul

 from expr_add

 

 

any solution please ¿???? 

 

Thanks in advanced

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

-------------- next part --------------
A non-text attachment was scrubbed...
Name: hs_err_pid5036.log
Type: application/octet-stream
Size: 10590 bytes
Desc: hs_err_pid5036.log
Url : http://www.antlr.org/pipermail/antlr-interest/attachments/20100820/858d7a8c/attachment.obj 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PLSQL3.g
Type: application/octet-stream
Size: 41702 bytes
Desc: PLSQL3.g
Url : http://www.antlr.org/pipermail/antlr-interest/attachments/20100820/858d7a8c/attachment-0001.obj 


More information about the antlr-interest mailing list