Beispiel #1
0
        private static Block ParseConcat(Block a, Block b, char type)
        {
            if (a == null)
            {
                return(SignBlock.Create(b, OperatorBlock.ToSignType(type)));
            }

            if (b == null)
            {
                throw new ArgumentNullException();
            }
            else
            {
                return(TwoOperatorBlock.Create(a, b, OperatorBlock.ToTwoOperatorType(type)));
            }
        }
Beispiel #2
0
 public override bool OperatorLowPriority(int p)
 {
     return(c < 0 ? OperatorBlock.GetPriority(SignType.Minus) < p : false);
 }