Hi, I'm just moving my first steps with antlr.

Referring to this article,
http://antlr.org/wiki/display/ANTLR3/Antlr3ActionScriptTarget i tried to
create something that can enumerate the methods of a class ( without success
) 

 

-          First of all in the swc lib I can' t find TLexer and TParser but
only Parser and Lexer Class.

So I wrote something like 

 

input= "public function pippo () : Boolean {return true;}";

var lexer:Lexer = new Lexer (new ANTLRStringStream(input));

 

-          then I tried to get tokens in this way but this generate an
exception

        var tokens:CommonTokenStream = CommonTokenStream(lexer);

 

Does anyone know some resources to get start with antlr and actionscript ?

 

Regards 

Matteo Lanzi

 

 

               

 


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

List: http://www.antlr.org:8080/mailman/listinfo/antlr-interest
Unsubscribe: 
http://www.antlr.org:8080/mailman/options/antlr-interest/your-email-address

Reply via email to