Type params parsing

This commit is contained in:
2026-05-04 17:22:24 +02:00
parent 7b1d2e3d91
commit c3844726fe
4 changed files with 9 additions and 4 deletions
+2 -1
View File
@@ -74,7 +74,8 @@ while_stmt = {
// ================= EXPRESSIONS =================
tuple_type = { "(" ~ (type_expr ~ ("," ~ type_expr)*)? ~ ")" }
type_expr = { (static_path ~ ("<" ~ type_expr ~ ">")?) | tuple_type }
path_type = { static_path ~ ("<" ~ (type_expr ~ ("," ~ type_expr)*)? ~ ">")? }
type_expr = { path_type | tuple_type }
primary = {
integer