Var definition without type

This commit is contained in:
2026-05-05 18:11:17 +02:00
parent 6aa851fcf9
commit a8b6ff4789
3 changed files with 10 additions and 3 deletions
+2 -1
View File
@@ -15,7 +15,8 @@ static_path = { identifier ~ ("::" ~ identifier)* }
export = { "public" }
mutable = { "mut" }
sharp = _{ "#" }
var_decl = { type_expr ~ mutable? ~ identifier }
var = { "var" }
var_decl = { (var | type_expr) ~ mutable? ~ identifier }
semicolon = _{ ";" }
// ================= TOP LEVEL =================