public void StringParser_EscapedQuote() { StringParser parser = new StringParser(); string token = "\"\\\"\""; StringNode node = (StringNode)parser.Parse(token); Assert.AreEqual("\"", node.Value()); }
public void StringParser_ShortString() { StringParser parser = new StringParser(); string token = "\"true\""; StringNode node = (StringNode)parser.Parse(token); Assert.AreEqual("true", node.Value()); }
private static List <IValue> Evaluate(StringNode str, Scope currentScope = null) { return(Value.ListWith(new WulString(str.Value(currentScope)))); }