예제 #1
0
        public IfStatement(IZ80AsmVisitorContext visitorContext, Z80AsmParser.IfStatementContext context)
        {
            if (context.IFSTMT() != null)
            {
                Expr = visitorContext.GetExpression(context.expr());
                Type = IfStatementType.If;
                return;
            }

            Type   = context.IFUSED() != null ? IfStatementType.IfUsed : IfStatementType.IfNotUsed;
            Symbol = visitorContext.GetSymbol(context.symbolExpr());
        }
예제 #2
0
 public override object VisitIfStatement(Z80AsmParser.IfStatementContext context)
 => new IfStatement(this, context);