Example #1
0
        public override object VisitJudgeIfStatement([NotNull] JudgeIfStatementContext context)
        {
            var b   = (Result)Visit(context.expression());
            var obj = $"if ( {b.text} ) {Wrap} {BlockLeft} {Wrap}";

            obj += ProcessFunctionSupport(context.functionSupportStatement());
            obj += $"{BlockRight} {Wrap}";
            return(obj);
        }
Example #2
0
        public override object VisitJudgeIfStatement(JudgeIfStatementContext context)
        {
            var b   = ((Result)Visit(context.expression()));
            var obj = (new System.Text.StringBuilder().Append("if ( ").Append(b.text).Append(" ) ").Append(BlockLeft).Append(Wrap)).To_Str();

            Add_current_set();
            obj += ProcessFunctionSupport(context.functionSupportStatement());
            Delete_current_set();
            obj += BlockRight + Wrap;
            return(obj);
        }