lib/Languages/Galach/Parser.php
private function popTokens($typeMask = null)
    {
        while ($this->isTopStackToken($typeMask)) {
            $token = $this->stack->pop();
            if ($token->type & self::$tokenShortcuts['operatorUnary']) {
                $this->addCorrection(
                    self::CORRECTION_UNARY_OPERATOR_MISSING_OPERAND_IGNORED,
                    $token
                );
            } else {
                $this->addCorrection(
                    self::CORRECTION_BINARY_OPERATOR_MISSING_RIGHT_OPERAND_IGNORED,
                    $token
                );
            }
        }
    }
private function popTokens($typeMask = null)
    {
        while ($this->isTopStackToken($typeMask)) {
            $token = $this->stack->pop();
            if ($token->type & self::$tokenShortcuts['operatorUnary']) {
                $this->addCorrection(
                    self::CORRECTION_UNARY_OPERATOR_MISSING_OPERAND_IGNORED,
                    $token
                );
            } else {
                $this->addCorrection(
                    self::CORRECTION_BINARY_OPERATOR_MISSING_RIGHT_OPERAND_IGNORED,
                    $token
                );
            }
        }
    }
private function popTokens ( $ typeMask = null ) { while ( $ this -> isTopStackToken ( $ typeMask ) ) { $ token = $ this -> stack -> pop ( ) ; if ( $ token -> type & self :: $ tokenShortcuts [ 'operatorUnary' ] ) { $ this -> addCorrection ( self :: CORRECTION_UNARY_OPERATOR_MISSING_OPERAND_IGNORED , $ token ) ; } else { $ this -> addCorrection ( self :: CORRECTION_BINARY_OPERATOR_MISSING_RIGHT_OPERAND_IGNORED , $ token ) ; } } }
Remove all Tokens from the top of the query stack and log Corrections as necessary.

Optionally also checks that Token matches given $typeMask.

@param int $typeMask
Remove all Tokens from the top of the query stack and log Corrections as necessary .