src/Compiler/Compiler.php
private function validateInteger(string $str) : int
    {
        $ret = filter_var($str,FILTER_VALIDATE_INT);
        if ($ret === false){
            throw new CompileErrorException('invalid integer value', $this->state);
        }
        return $ret;
    }
private function validateInteger(string $str) : int
    {
        $ret = filter_var($str,FILTER_VALIDATE_INT);
        if ($ret === false){
            throw new CompileErrorException('invalid integer value', $this->state);
        }
        return $ret;
    }
private function validateInteger ( string $ str ) : int { $ ret = filter_var ( $ str , FILTER_VALIDATE_INT ) ; if ( $ ret === false ) { throw new CompileErrorException ( 'invalid integer value' , $ this -> state ) ; } return $ ret ; }
Validate if expression is integer value

@param string $str

@return int

@throws CompileErrorException
Validate if expression is integer value