Function call with var path

This commit is contained in:
2026-04-14 03:31:13 +02:00
parent 9ced12933a
commit a914892fc1
3 changed files with 36 additions and 4 deletions
+18 -1
View File
@@ -43,4 +43,21 @@ expr_stmt = { expr ~ ";" }
// ================= EXPRESSIONS =================
type_expr = { identifier }
expr = { identifier | integer | float | boolean | string_lit }
var_path = { identifier ~ ("." ~ identifier)* }
term = {
integer
| float
| boolean
| string_lit
| var_path
}
func_call = {
var_path ~ "(" ~ (expr ~ ("," ~ expr)*)? ~ ")"
}
expr = {
func_call
| term
}