static void Main(string[] args) { string input2 = "int i=0;\nfor(int i=0;a<=123;)"; AntlrInputStream stream = new AntlrInputStream(input2); clightLexer lexer = new clightLexer(stream); CommonTokenStream tokenStream = new CommonTokenStream(lexer); clightParser parser = new clightParser(tokenStream); clightParser.StatementContext context = parser.statement(); // clightParser.ProgramContext context = parser.program(); // context. }
/// <summary> /// Exit a parse tree produced by <see cref="clightParser.statement"/>. /// <para>The default implementation does nothing.</para> /// </summary> /// <param name="context">The parse tree.</param> public virtual void ExitStatement([NotNull] clightParser.StatementContext context) { }