parser: Parse char immediates into Expr::Number
This commit is contained in:
parent
d4c5005d8a
commit
822c7f3700
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user