1
0
Fork 0
mirror of https://github.com/Reuh/candran.git synced 2025-10-28 02:09:30 +00:00

Add destructuring assignement

This commit is contained in:
Étienne Fildadut 2020-01-15 20:42:27 +01:00
parent 851e9f89d6
commit 842536b561
10 changed files with 3823 additions and 2985 deletions

View file

@ -304,6 +304,8 @@ function traverse_var (env, var)
status, msg = traverse_exp(env, var[2])
if not status then return status, msg end
return true
elseif tag == "DestructuringId" then
return traverse_table(env, var)
else
error("expecting a variable, but got a " .. tag)
end