HI!
My Grammar is in development! :)
I have any problem with ANTLR thing... I don't know how I can declare Global
Variable because if I write in my grammar:
program: {String s = new String();}...
I see this only in "program" in the P.java file. I don't know if you
understand me! [pardon my English!]
Now I'm realizing this:
I give to my Java program this (for example) Ruby code:
class A
def initialize
@a = 0
end
end
My result will be this in memory:
new Programma(
new ClassDef(new ClassName("A"), new ClassName("Object"),
new ClassBody(
new MethodDef(new MethodName("initialize"), new Parameter[]{},
new Body(new Assign(new FieldName("a"), new Int(0)))
)
)
)
)
I'm stop for some problems for how I can create this. I'm in a good point,
but for the moment I have some problems :(
Thank you,
bye bye
puellula
----- Original Message -----
From: "MenTaLguY" <[EMAIL PROTECTED]>
To: "Grammarians" <[email protected]>
Sent: Sunday, January 22, 2006 2:11 PM
Subject: [grammarians] progress?
> Hey there grammarians,
>
> I've been pretty heavily distracted as of late, but I'd like to get back
> to the grammar test suite soon. How are those grammars doing?
>
> -mental
>
> _______________________________________________
> Rubygrammar-grammarians mailing list
> [email protected]
> http://rubyforge.org/mailman/listinfo/rubygrammar-grammarians
_______________________________________________
Rubygrammar-grammarians mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/rubygrammar-grammarians