/// Parses `BETWEEN <low> AND <high>`, assuming the `BETWEEN` keyword was already consumed
Parses `BETWEEN  AND `, assuming the `BETWEEN` keyword was already consumed
Parses ` BETWEEN AND ` assuming the ` BETWEEN ` keyword was already consumed
fn parse_between(&mut self, expr: Expr<Raw>, negated: bool) -> Result<Expr<Raw>, ParserError> {
        // Stop parsing subexpressions for <low> and <high> on tokens with
        // precedence lower than that of `BETWEEN`, such as `AND`, `IS`, etc.
        let low = self.parse_subexpr(Precedence::Like)?;
        self.expect_keyword(AND)?;
        let high = self.parse_subexpr(Precedence::Like)?;
        Ok(Expr::Between {
            expr: Box::new(expr),
            negated,
            low: Box::new(low),
            high: Box::new(high),
        })
    }
fn parse_between ( & mut self , expr : Expr < Raw > , negated : bool ) -> Result < Expr < Raw > , ParserError > { // Stop parsing subexpressions for <low> and <high> on tokens with // precedence lower than that of `BETWEEN`, such as `AND`, `IS`, etc. let low = self . parse_subexpr ( Precedence :: Like ) ? ; self . expect_keyword ( AND ) ? ; let high = self . parse_subexpr ( Precedence :: Like ) ? ; Ok ( Expr :: Between { expr : Box :: new ( expr ) , negated , low : Box :: new ( low ) , high : Box :: new ( high ) , } ) }
Parses `BETWEEN <low> AND <high>`, assuming the `BETWEEN` keyword was already consumed
Parses ` BETWEEN <low > AND <high > ` assuming the ` BETWEEN ` keyword was already consumed
&mut self
expr
Expr<Raw>
negated
bool