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();
|
self.take();
|
||||||
Expr::Number(n)
|
Expr::Number(n)
|
||||||
}
|
}
|
||||||
|
Kind::Char(c) => {
|
||||||
|
self.take();
|
||||||
|
Expr::Number(c as _)
|
||||||
|
}
|
||||||
Kind::Identifier => {
|
Kind::Identifier => {
|
||||||
self.take();
|
self.take();
|
||||||
Expr::Ident(lexeme)
|
Expr::Ident(lexeme)
|
||||||
|
Loading…
Reference in New Issue
Block a user