Example #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());
        }