Example #1
0
        public override object VisitCase([NotNull] CaseContext context)
        {
            string result = "...";

            switch (context.op.Type)
            {
            case UPPER:
                result = Visit(context.expression()).ToString().ToUpper();
                break;

            case LOWER:
                result = Visit(context.expression()).ToString().ToLower();
                break;
            }

            return(result);
        }