public function parse(array $tokens)
    {
        // Filter away any whitespace
        $tokens = $this->filterTokens($tokens);

        // Insert missing implicit multiplication tokens
        if (static::allowImplicitMultiplication()) {
            $tokens = $this->parseImplicitMultiplication($tokens);
        }

        $this->tokens = $tokens;

        // Perform the actual parsing
        return $this->shuntingYard($tokens);
    }
public function parse(array $tokens)
    {
        // Filter away any whitespace
        $tokens = $this->filterTokens($tokens);

        // Insert missing implicit multiplication tokens
        if (static::allowImplicitMultiplication()) {
            $tokens = $this->parseImplicitMultiplication($tokens);
        }

        $this->tokens = $tokens;

        // Perform the actual parsing
        return $this->shuntingYard($tokens);
    }
public function parse ( array $ tokens ) { // Filter away any whitespace $ tokens = $ this -> filterTokens ( $ tokens ) ; // Insert missing implicit multiplication tokens if ( static :: allowImplicitMultiplication ( ) ) { $ tokens = $ this -> parseImplicitMultiplication ( $ tokens ) ; } $ this -> tokens = $ tokens ; // Perform the actual parsing return $ this -> shuntingYard ( $ tokens ) ; }
Parse list of tokens

@param array $tokens Array (Token[]) of input tokens.
@retval Node AST representing the parsed expression.
Parse list of tokens