Refactoring

This commit is contained in:
Andy Grove 2018-09-03 07:45:48 -06:00
parent 037ebb0f73
commit fa2ef528b7
2 changed files with 36 additions and 22 deletions

View file

@ -113,6 +113,12 @@ pub trait SQLParser<TokenType, ExprType>
fn parse_infix(&mut self, chars: &mut CharSeq, left: &SQLExpr<ExprType>, precedence: usize) -> Result<Option<Box<SQLExpr<ExprType>>>, ParserError<TokenType>>;
}
//struct PrattParser<ExprType, TokenType> {
//
// ansi_parser:
//
//}
//
//pub fn parse_expr<'a, TokenType, ExprType>(parser: Arc<Mutex<SQLParser<TokenType, ExprType>>>)
// -> Result<Box<SQLExpr<ExprType>>, ParserError<TokenType>> where TokenType: Debug + PartialEq, ExprType: Debug {