[antlr-interest] problem with ast
maciej1205
m_kabacinski at poczta.onet.pl
Tue May 6 01:28:28 PDT 2003
Hi,
I'm trying to build aa compiler for small language ( int type, bool
type, for , while, ..)
ex.
program
var a : int;
var b : int;
var c : bool ;
begin
if c then b=a+b;
end ;
endprog;
I've already build parser but without rules.
problem is, I can't build ast tree for defined variables.
my idea is to build tree :
int_type bool_type
| |
a----value c-----value
|
b----value
Can anybody help me with this ?
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
More information about the antlr-interest
mailing list