Exemple #1
0
        internal static UnaryOp CreateUnaryOp03()
        {
            Token   type    = Token.BitwiseNot;
            UnaryOp unaryOp = UnaryOp.CreateOp(type);

            return(unaryOp);
        }
Exemple #2
0
        internal static UnaryOp CreateUnaryOp01()
        {
            Token   type    = Token.ArithmeticFirst;
            UnaryOp unaryOp = UnaryOp.CreateOp(type);

            return(unaryOp);
        }
Exemple #3
0
        internal static UnaryOp CreateUnaryOp02()
        {
            Token   type    = Token.BooleanNot;
            UnaryOp unaryOp = UnaryOp.CreateOp(type);

            return(unaryOp);
        }
Exemple #4
0
        internal static Expression CreateExpression02()
        {
            Token      type       = Token.BooleanNot;
            Expression expression = UnaryOp.CreateOp(type);

            return(expression);
        }
Exemple #5
0
        void ParseUnaryOp()
        {
            Token token = this.PeekToken();

            this.CheckStartableToken(token);
            UnaryOp uo = UnaryOp.CreateOp(_current.token);

            _tree.AddOperator(uo);
        }