diff --git a/src/parser.rs b/src/parser.rs index 9f49ccf..a02892d 100644 --- a/src/parser.rs +++ b/src/parser.rs @@ -173,6 +173,10 @@ impl<'t> Parser<'t> { self.take(); Expr::Number(n) } + Kind::Char(c) => { + self.take(); + Expr::Number(c as _) + } Kind::Identifier => { self.take(); Expr::Ident(lexeme)