Example #1
0
        public void TestMethod1()
        {
            var src = @"
run * for (x y)
|- x == 1 || x == 2 || x == 3
|- y == 'a' || y == 'b'
";
            var res = parser.Parse(src);

            Console.WriteLine(res.ToSExp().ToPrettyString());
        }
Example #2
0
        private static NcParser _P2P(NcParser ncParser, string grammer, Action <NcParser.Settings> init = null)
        {
            var ast = ncParser.Parse(grammer).Nodes.First();

            return(NcParser.Load(ast, init));
        }
Example #3
0
        public void TestParser()
        {
            var pr = _parser.Parse("(5.1+2)*3+-2^3^2");

            Console.WriteLine(pr.ToSExp().ToPrettyString());
        }