Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Many lua parser fixes. #302

Merged
merged 6 commits into from
May 11, 2023
Merged

Many lua parser fixes. #302

merged 6 commits into from
May 11, 2023

Conversation

DanAlbert
Copy link
Collaborator

Probably not done yet. This fixes a handful of bugs (and adds missing features) necessary for parsing liveries lua descriptions.

Apparently semicolons and commas are both allowed as element separators
in tables. https://www.lua.org/cgi-bin/demo accepts it, and some
liveries do that.
Previously the parser would assume any unknown variable was a new decl,
but if it wasn't the parser gave an rather unhelpful error. This
improves the error message by default, and also gives the caller a way
to fill undefined variables. The undefined variable is only a problem if
that caller is going to read that value, and that's not always the case.
@DanAlbert DanAlbert merged commit 3ef96ec into pydcs:master May 11, 2023
3 checks passed
@DanAlbert DanAlbert deleted the parser-fixes branch May 11, 2023 04:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant