public void MinusSign()
        {
            string input = @"form ExampleBlock {
                statement Smthing1 (number, (1+(2 -3))) ""this "";
                statement Smthing2 (number, (1+(2-3))) ""should"";
                statement Smthing3 (number, (1+(2 --3))) ""be"";
                statement Smthing4 (number, (1+(2-- 3))) ""solved"";

                }

            ";
            QLBuilder Handler = new QLBuilder(input);

            Handler.RegisterGenericDataHandlers();
            Assert.AreEqual(true, Handler.RunInit());
            Assert.AreEqual(true, Handler.RunASTBuilders());
        }
Esempio n. 2
0
 public void Initialize(string input)
 {
     Builder = new QLBuilder(input);
     Builder.RegisterGenericDataHandlers();
     Assert.IsTrue(Builder.RunInit());
     Assert.IsTrue(Builder.RunASTBuilders());
     Assert.IsTrue(Builder.RunTypeCheckers());
 }