Hi all,

I've been expanding the Oracle PL/SQL grammar (from the ANTLR downloads 
section) for the past while and have had lots of success.

options {
            language=CSharp2;
            k=*;
            backtrack=true;
            memoize=true;
            output=AST;
}

Right now I've got it parsing lots of programs into exactly the AST I want 
(liking those tree rewrite rules), but there are definitely still many programs 
that don't parse the way I expect/require.

How can I determine which path was taken through the grammar to parse the input?

I'm not sure how the grammar is producing some of this output, but if I knew 
the path it was taking I'd at least have some understanding of the problem and 
likely then be able to figure out a way to fix it.

So far, the only option I've seen is annotating my grammar with trace 
statements that'll execute during parsing.  Ick.  Is there not a better way?

I'm pretty sure there must be, and I'm just not seeing it.

Suggestions?

Thanks,
J


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"il-antlr-interest" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/il-antlr-interest?hl=en
-~----------~----~----~----~------~----~------~--~---

List: http://www.antlr.org/mailman/listinfo/antlr-interest
Unsubscribe: 
http://www.antlr.org/mailman/options/antlr-interest/your-email-address

Reply via email to