public override string ParseString(RCLexer lexer, RCToken token) { string undelim = token.Text.Substring(1, token.Text.Length - 2); return(undelim); // return UnescapeControlChars (undelim, '"'); }
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)); }
public override object Parse(RCLexer lexer, RCToken token) { return(ParseString(lexer, token)); }
public override object Parse(RCLexer lexer, RCToken token) { return(token.Text); }
public override string ParseString(RCLexer lexer, RCToken token) { return(token.Text); }