Exemple #1
0
        public override string ParseString(RCLexer lexer, RCToken token)
        {
            string undelim = token.Text.Substring(1, token.Text.Length - 2);

            return(undelim);
            // return UnescapeControlChars (undelim, '"');
        }
Exemple #2
0
        public void EvalSymbolString(RCRunner runner, RCClosure closure, RCString right)
        {
            RCLexer lexer = new RCLexer(new RCArray <RCTokenType> (
                                            RCTokenType.Number,
                                            RCTokenType.Boolean,
                                            RCTokenType.Symbol,
                                            RCTokenType.Name));
            RCArray <RCSymbolScalar> result = new RCArray <RCSymbolScalar> (right.Count);

            for (int i = 0; i < right.Count; ++i)
            {
                RCSymbolScalar symbol = RCSymbolScalar.From(lexer, right[i]);
                result.Write(symbol);
            }
            runner.Yield(closure, new RCSymbol(result));
        }
Exemple #3
0
 public override object Parse(RCLexer lexer, RCToken token)
 {
     return(ParseString(lexer, token));
 }
Exemple #4
0
 public override object Parse(RCLexer lexer, RCToken token)
 {
     return(token.Text);
 }
Exemple #5
0
 public override string ParseString(RCLexer lexer, RCToken token)
 {
     return(token.Text);
 }