Exemple #1
0
        public void StringParser_EscapedQuote()
        {
            StringParser parser = new StringParser();
            string       token  = "\"\\\"\"";

            StringNode node = (StringNode)parser.Parse(token);

            Assert.AreEqual("\"", node.Value());
        }
Exemple #2
0
        public void StringParser_ShortString()
        {
            StringParser parser = new StringParser();
            string       token  = "\"true\"";

            StringNode node = (StringNode)parser.Parse(token);

            Assert.AreEqual("true", node.Value());
        }
Exemple #3
0
 private static List <IValue> Evaluate(StringNode str, Scope currentScope = null)
 {
     return(Value.ListWith(new WulString(str.Value(currentScope))));
 }