Пример #1
0
 /// <summary>
 /// Exit a parse tree produced by <see cref="SomeLanguageParser.instruction"/>.
 /// <para>The default implementation does nothing.</para>
 /// </summary>
 /// <param name="context">The parse tree.</param>
 public virtual void ExitInstruction([NotNull] SomeLanguageParser.InstructionContext context)
 {
 }
Пример #2
0
            public override void EnterInstruction([NotNull] SomeLanguageParser.InstructionContext context)
            {
                string instructionName = context.GetText();

                instructions.Add(new Instruction(instructionName));
            }