luajit-lang-toolkit
luajit-lang-toolkit copied to clipboard
AST validation: syntax description for Tables is wrong
According to ast-validate.lua, Tables are expected to be described in terms of the array_entries, hash_keys and hash_values properties.
However, lua-ast.lua generates Tables as with a single keyvals property which is essentially a list of pairs.
As such the validation of AST trees containing Tables is currently failing.
Hi Stefano,
of course this need to be fixed. The validator for the table was broken when I merged some proposition of @gnois. We forgot to update the ast-validate stuff.
I am not sure it can be fixed without updating the various check functions, do you confirm?