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

Commits on May 11, 2023

  1. Fix Lua parser to handle semicolon separators.

    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.
    DanAlbert committed May 11, 2023
    Configuration menu
    Copy the full SHA
    ad9a4bb View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    9286e28 View commit details
    Browse the repository at this point in the history
  3. Improve lua parser handling of unknown variables.

    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 committed May 11, 2023
    Configuration menu
    Copy the full SHA
    5a48016 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    fdef52f View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    ba07893 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    b34d8e0 View commit details
    Browse the repository at this point in the history