float literals

This commit is contained in:
2026-06-24 18:06:58 +02:00
parent 213e3d4b37
commit e4582ec85a
6 changed files with 62 additions and 21 deletions

View File

@@ -675,6 +675,7 @@ impl Parser {
fn primary(&mut self) -> Result<Expr, ZernError> {
if self.match_token(&[
TokenType::IntLiteral,
TokenType::FloatLiteral,
TokenType::CharLiteral,
TokenType::StringLiteral,
TokenType::True,