Skip to content

Commit

Permalink
chore(parser): cleanup tracing prints.
Browse files Browse the repository at this point in the history
  • Loading branch information
rzvxa committed Mar 3, 2024
1 parent f672a7e commit 504cd3e
Showing 1 changed file with 8 additions and 14 deletions.
22 changes: 8 additions & 14 deletions crates/fuse-parser/src/parsers/expressions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,14 @@ use fuse_ast::{BooleanLiteral, Expression};
impl<'a> Parser<'a> {
pub(crate) fn parse_expression(&mut self) -> ParserResult<Expression> {
match self.cur_kind() {
TokenKind::True => {
println!("HERE True");
Ok(Expression::BooleanLiteral(BooleanLiteral {
span: self.consume().span(),
value: true,
}))
}
TokenKind::False => {
println!("HERE False");
Ok(Expression::BooleanLiteral(BooleanLiteral {
span: self.consume().span(),
value: false,
}))
}
TokenKind::True => Ok(Expression::BooleanLiteral(BooleanLiteral {
span: self.consume().span(),
value: true,
})),
TokenKind::False => Ok(Expression::BooleanLiteral(BooleanLiteral {
span: self.consume().span(),
value: false,
})),
TokenKind::NumberLiteral => Ok(Expression::NumberLiteral(self.parse_number_literal()?)),
TokenKind::StringLiteral | TokenKind::InterpolatedStringHead => {
Ok(Expression::StringLiteral(self.parse_string_literal()?))
Expand Down

0 comments on commit 504cd3e

Please sign in to comment.