Exemple #1
0
        /// <summary>
        /// Visit a parse tree produced by <see cref="Generated.Z80AsmParser.dispPragma"/>.
        /// </summary>
        /// <param name="context">The parse tree.</param>
        /// <return>The visitor result.</return>
        public override object VisitDispPragma(Z80AsmParser.DispPragmaContext context)
        {
            if (IsInvalidContext(context))
            {
                return(null);
            }

            return(AddLine(new DispPragma
            {
                Expr = (ExpressionNode)VisitExpr(context.GetChild(1) as Z80AsmParser.ExprContext)
            }, context));
        }
Exemple #2
0
 public override object VisitDispPragma(Z80AsmParser.DispPragmaContext context)
 => new DispPragma(this, context);
 /// <summary>
 /// Visit a parse tree produced by <see cref="Z80AsmParser.dispPragma"/>.
 /// <para>
 /// The default implementation returns the result of calling <see cref="AbstractParseTreeVisitor{Result}.VisitChildren(IRuleNode)"/>
 /// on <paramref name="context"/>.
 /// </para>
 /// </summary>
 /// <param name="context">The parse tree.</param>
 /// <return>The visitor result.</return>
 public virtual Result VisitDispPragma([NotNull] Z80AsmParser.DispPragmaContext context)
 {
     return(VisitChildren(context));
 }
Exemple #4
0
 /// <summary>
 /// Exit a parse tree produced by <see cref="Z80AsmParser.dispPragma"/>.
 /// <para>The default implementation does nothing.</para>
 /// </summary>
 /// <param name="context">The parse tree.</param>
 public virtual void ExitDispPragma([NotNull] Z80AsmParser.DispPragmaContext context)
 {
 }