[antlr-interest] antlr 3.1b - actionscript - commontokenstream error

Jiiii Uuuuu subscriptionlist at yahoo.com
Sun Jun 1 04:13:32 PDT 2008


Hi, 

    I was trying to use generated actionscript code in the following way, and hit type conversion error, any help please?

-----------------SNIP----------
            var lexer:myLexer = new myLexer ( new ANTLRStringStream ( input.text + "\r\n" ) );
            var tokens:CommonTokenStream = CommonTokenStream(lexer);

            var parser:myParser = myParser(tokens);
            parser.prog();
------------------SNIP-----------

TypeError: Error #1034: Type Coercion failed: cannot convert com.jithu::myLexer at 3b964a1 to org.antlr.runtime.CommonTokenStream.
    at VirtualLab/AntlrActionScriptTest()
    at VirtualLab/___VirtualLab_Button1_click()

Thanks in advance :)

Regards
Jithu




      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20080601/81c7cd5a/attachment.html 


More information about the antlr-interest mailing list