"John B. Brodie" <[email protected]> writes:
> Greetings!
>
> Sorry for jumping in...
Hi John, you're most welcome, thanks for your answer.
I had a look at your proposition. It's good for the simple case I gave you, but
the complete problem still eludes me.
The complete input is :
STRUCT myvar1,myarr1[maxx,maxy] ( INTEGER i1; INTEGER j2; )
The expected output should be :
#(DECL_VARIABLE 'myvar1'
#(STRUCT
#(DECL_VARIABLE 'i1' INTEGER)
#(DECL_VARIABLE 'j1' INTEGER)
)
)
#(DECL_VARIABLE 'myarr1'
#(ARRAY
#(DIMS 'maxx' 'maxy')
#(STRUCT
#(DECL_VARIABLE 'i1' INTEGER)
#(DECL_VARIABLE 'j1' INTEGER)
)
)
)
That was the purpose of passing the type as parameter to "indentifiers", so that
the 'ARRAY' node could have as its second child the type (here the structure).
And that's why I'm still needing a bit of help ...
Cheers.
--
Robert
List: http://www.antlr.org/mailman/listinfo/antlr-interest
Unsubscribe:
http://www.antlr.org/mailman/options/antlr-interest/your-email-address
--
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.