コード例 #1
0
        public override SLValue VisitStringExpression(StringExpressionContext ctx)
        {
            String text = ctx.GetText();

            text = text.Substring(1, text.Length - 2);
            SLValue val = new SLValue(text);

            if (ctx.indexes() != null)
            {
                List <ExpressionContext> exps = ctx.indexes().expression().ToList();
                val = resolveIndexes(val, exps);
            }
            return(val);
        }