tuple type parsing

This commit is contained in:
2026-05-04 17:11:56 +02:00
parent 416830b095
commit 32a08d3e7f
3 changed files with 12 additions and 27 deletions
+2 -1
View File
@@ -73,7 +73,8 @@ while_stmt = {
}
// ================= EXPRESSIONS =================
type_expr = { static_path }
tuple_type = { "(" ~ (type_expr ~ ("," ~ type_expr)*)? ~ ")" }
type_expr = { (static_path ~ ("<" ~ type_expr ~ ">")?) | tuple_type }
primary = {
integer