public void TestOr()
        {
            var or = new Or(Constant.False, Constant.False);
            Assert.AreEqual("false || false", or.ToString());

            or.Jumping(42, 99);
            //output:
            //  	  goto L99
        }
Beispiel #2
0
        public Expr Bool()
        {
            Expr expr = this.Join();

            while (_look.TagValue == Tag.OR)
            {
                //var tok = _look;
                this.Move();
                expr = new Or(expr, this.Join());
            }
            return(expr);
        }
Beispiel #3
0
 public Expr Bool()
 {
     Expr expr = this.Join();
     while(_look.TagValue == Tag.OR)
     {
         //var tok = _look;
         this.Move();
         expr = new Or(expr, this.Join());
     }
     return expr;
 }