Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Oops, wrong code. Should be correct.

...

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 AntlrActionScriptTest(input:String) {
			lexer.inputcharStream = new ANTLRStringStream(input);
			var tokens:CommonTokenStreamparser.tokenStream = new CommonTokenStream(lexer);

			parser.input = tokens;
			parser.entry_rule();
 		}
	}
}

...