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
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
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
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
.. 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
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