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

            return(AddLine(new OrgPragma
            {
                Expr = (ExpressionNode)VisitExpr(context.GetChild(1) as Z80AsmParser.ExprContext)
            }, context));
        }
Exemple #2
0
 public override object VisitOrgPragma(Z80AsmParser.OrgPragmaContext context)
 => new OrgPragma(this, context);
 /// <summary>
 /// Visit a parse tree produced by <see cref="Z80AsmParser.orgPragma"/>.
 /// <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 VisitOrgPragma([NotNull] Z80AsmParser.OrgPragmaContext context)
 {
     return(VisitChildren(context));
 }
Exemple #4
0
 /// <summary>
 /// Exit a parse tree produced by <see cref="Z80AsmParser.orgPragma"/>.
 /// <para>The default implementation does nothing.</para>
 /// </summary>
 /// <param name="context">The parse tree.</param>
 public virtual void ExitOrgPragma([NotNull] Z80AsmParser.OrgPragmaContext context)
 {
 }