Example #1
0
        public override void ExitFactor1(ssuplParser.Factor1Context context)
        {
            //factor -> NUM
            var d = Int32.Parse(context.NUM().GetText());

            code.Put(context,
                     $"push qword {d}");
        }
 /// <summary>
 /// Exit a parse tree produced by the <c>factor1</c>
 /// labeled alternative in <see cref="ssuplParser.factor"/>.
 /// <para>The default implementation does nothing.</para>
 /// </summary>
 /// <param name="context">The parse tree.</param>
 public virtual void ExitFactor1([NotNull] ssuplParser.Factor1Context context)
 {
 }