Evaluator
class Evaluator
This class allows the evaluation of postfixed expressions (RPN notation)
Methods
                    void
                
                
                    __construct()
        
                                            
                
            Constructor of class Evaluator
                    comparison(Token $op, array $args)
        
                                            
                
            Compares two arguments with a comparison operator and returns the result token.
                    bool
                
                
                
            Details
        at         line 45
                            void
    __construct()
        
    
    Constructor of class Evaluator
        at         line 57
                            Token|false
    run(array $tokens)
        
    
    Performs the evaluation of a postfixed expression
        at         line 103
                        private    Token
    operation(Token $op, array $args)
        
    
    Realizes an unary, binary or ternary operation and returns the result token.
        at         line 195
                        private    Token
    comparison(Token $op, array $args)
        
    
    Compares two arguments with a comparison operator and returns the result token.
        at         line 248
                        private    bool
    compatible(Token $arg1, Token $arg2)
        
    
    Determines whether two arguments have compatible types.
        at         line 277
                        private    void
    guessType(Token $token)
        
    
    Guess the type of a token value