[il-antlr-interest: 21939] Re: [antlr-interest] CommonEr rorNode and using ASTLabelType (3.0.1 -> 3.1.1)

2009-02-14 Thread Bruno Marc-Aurele
I don't know what would be recommended, but I also need to have an ErrorNode that derives from my custom node. What I did is I overloaded the errorNode method in my NodeAdaptor to tkae as an input a CustomErrorNode error node. My CustomErrorNode class derives from my CustomNode and is actually on

[il-antlr-interest: 21753] Re: [antlr-interest] Changing the base node type

2009-02-06 Thread Bruno Marc-Aurele
ASTErrorNode( input, start, stop, e ); > return t; > } > } > > Sam > > -Original Message- > From: antlr-interest-boun...@antlr.org > [mailto:antlr-interest-boun...@antlr.org] On Behalf Of Terence Parr > Sent: Friday, February 06, 2009 9:56 AM > To: Bruno Marc-Aurele

[il-antlr-interest: 21740] [antlr-interest] Changing the base node type

2009-02-06 Thread Bruno Marc-Aurele
Hello all, I am trying to do a grammar with a new base type for nodes. I can see that I am provided with ASTLabelType, whose value I set to Node, the name of my CommonTree subclass. The only difference between the two classes is the presence of a "Accept" method. The parser, however, still create

[il-antlr-interest: 21598] [antlr-interest] Lexer recognition exceptions

2009-01-28 Thread Bruno Marc-Aurele
Hi, I am currently doing a project where the description of our software architecture is very important. Therefore, I have to understand the code that's generated by ANTLR properly (academic stuff... Need to provide documents and follow them...) I have seen that the generated parser catches the

[il-antlr-interest: 21467] Re: [antlr-interest] ANTLR Questions

2009-01-21 Thread Bruno Marc-Aurele
.. will my node object have a "newAttribute" property (C# target) when generated? Thanks a lot, Bruno M-A. -- Bruno Marc-Aurèle courriel Poly: bruno.marc-aur...@polymtl.ca courriel perso: bruno@hotmail.com Selon Johannes Luber : > Bruno Marc-Aurele schrieb: > > Hell

[il-antlr-interest: 21456] [antlr-interest] ANTLR Questions

2009-01-20 Thread Bruno Marc-Aurele
Hello everyone, I am currently working on a project where I need to translate files (mainly code) from one technology to another. I already have a LL(*) grammar for the source language and I am considering rewriting this grammar using ANTLR to benefit from C# generation target. I have used JavaC