[antlr-interest] Urgent help tree building

Nico nico123 at adinet.com.uy
Mon Sep 22 16:10:08 PDT 2003


Hi:

I have a question in building a tree with buildAST = true;
I am building a custom tree, from a partial Smalltalk-80 grammar.

When I have this Lexer rule:

name_def: 
 a:IDENT "subclass"! COLON! SHARP! c:IDENT

I want to create this tree:

- c:IDENT
- EXTENDS
   - a:IDENT

c:IDENT and EXTENDS are in same level. - a:IDENT is EXTEND'S child
and "subclass"! COLON! SHARP! don't want to be in the tree.

The source is:

Object subclass: #AClasesPOS2

How do i do that?I apreciate the help!

regards

Nico
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20030922/30cef4a5/attachment.html


More information about the antlr-interest mailing list