示例#1
0
        public override void ExitProgram(slpParser.ProgramContext context)
        {
            program = m.Get(context.exp());
            if (program.Data == null)
            {
                program.Data = "program";
            }
            else
            {
                program = new Node("program", program);
            }

            traverse0(program);
            traverse1(program);
            //traverse1(program);
            //// traverse0(program);
            //traverse2(ref program);
            //traverse3(program);
            m.Put(context, program);
        }
示例#2
0
 /// <summary>
 /// Exit a parse tree produced by <see cref="slpParser.program"/>.
 /// <para>The default implementation does nothing.</para>
 /// </summary>
 /// <param name="context">The parse tree.</param>
 public virtual void ExitProgram([NotNull] slpParser.ProgramContext context)
 {
 }