...
Code Block |
---|
package { import org.antlr.runtime.*; public class AntlrActionScriptTest { private static var lexer:TLexer = new TLexer(null); private static var parser:TParser = new TParser(null); public function AntlrActionScriptTestparseInput(input:String):void { lexer.charStream = new ANTLRStringStream(input); parser.tokenStream = new CommonTokenStream(lexer); parser.entry_rule(); } } } |
...