[antlr-interest] Newbie question: has anyone been able to build the PL/SQL Grammar?

Bill Boese wboese at ptd.net
Mon Oct 23 17:26:54 PDT 2006


Loring, Terence:

Thanks, I was able to build it deleting the line below but there are a
tremendous number of warnings regarding ambiguities.

>> Did you change it to extend TreeParser not Parser?

Nope, the version posted on the site extends TreeParser as below, my comment
only added.

+++++++++++++++++++++++++++++++++++++++++++++++++++++

class PLSqlTreeWalker extends TreeParser;

options {
    exportVocab = PLSql;
//    k = 4;
    buildAST = true;
}

+++++++++++++++++++++++++++++++++++++++++++++++++++++

Thanks for your help!

- Bill


-----Original Message-----
From: Loring Craymer [mailto:lgcraymer at yahoo.com] 
Sent: Friday, October 20, 2006 5:14 PM
To: Bill Boese; antlr-interest at antlr.org
Subject: Re: [antlr-interest] Newbie question: has anyone been able to build
the PL/SQL Grammar?

Bill--

Just delete that line.  ANTLR 2 treewalkers are effectively k=1.

--Loring

--- Bill Boese <wboese at ptd.net> wrote:

> Hi:
>  
> I am trying to work with the PL/SQL grammar on the website at:
>  
>
http://www.antlr.org/grammar/1107752678378/PLSQLGrammar.g
>  
> and I am getting the errors below:
>  
> +++++++++++++++++++++++++++++++++++++++++++++++
>  
> C:\antlr-2.7.6\examples\plsql>java antlr.Tool
> PLSQLGrammar.g
> ANTLR Parser Generator   Version 2.7.6 (2005-12-22) 
>  1989-2005
> PLSQLGrammar.g:1029:9: Treewalkers only support k=1
> Exiting due to errors.
>  
> +++++++++++++++++++++++++++++++++++++++++++++++
>  
> The referenced line sets the option k = 4, so I am
> wondering if I am missing
> something obvious or if this
> was likely developed on a previous version of antlr
> (I'm using 2.7.6).
>  
> Thanks in advance,
>  
> Bill
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 



More information about the antlr-interest mailing list