[antlr-interest] C# targets problem with custom tree nodes
Johannes Luber
JALuber at gmx.de
Wed Feb 25 03:53:46 PST 2009
> Hi, I noticed very strange behaviour with custom nodes specified in the
> parser:
>
> A) if constructor parameters are specified, the node is never added to
> the final tree structure, only the subnodes
> B) if the token is an imaginary one, the same behaviour, the custom
> node is missing from the tree.
I don't know if these behaviors are correct or if they are bugs as I never used such syntax myself. But as I haven't changed the runtime in that area for special .NET needs, any bugs are probably present in the Java runtime. Can you please post a minimal grammar along required supporting files, so I and Ter can investigate this issue?
Johannes
>
>
> For example:
>
> CLASS IDENT -> ^(CLASS<NodeIndentifier> IDENT) is OK
>
> CLASS IDENT -> ^(VIRTUAL_CLASS<NodeIndentifier> IDENT) is NOT OK no
> node of type NodeIndentifier is added to the tree
>
> CLASS id=IDENT -> ^(CLASS<NodeIndentifer>[$id.Text] is NOT OK, no
> node of type NodeIndentifier is added to the tree
>
>
> Are any other people having issues with this?
>
> List: http://www.antlr.org/mailman/listinfo/antlr-interest
> Unsubscribe:
> http://www.antlr.org/mailman/options/antlr-interest/your-email-address
--
Psssst! Schon vom neuen GMX MultiMessenger gehört? Der kann`s mit allen: http://www.gmx.net/de/go/multimessenger01
More information about the antlr-interest
mailing list