Make list productions left-recursive

This commit is contained in:
2025-09-08 15:19:49 -06:00
parent 46f2bbcc9b
commit 70d7d80ce0
4 changed files with 138 additions and 87 deletions

View File

@@ -21,7 +21,7 @@ let parse (s:string) =
parse "abc();"
parse "abc(def);"
parse "abc(def,ghi);"
parse "abc(def,ghi) a(b) ;"
parse "abc(def,ghi) j(k) ;"
parse "a() [ b() c(), d(), , e() [ f() ] g() ] h();"
if failed then exit 1 else exit 0