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

v4 script parser #1191

Merged
merged 18 commits into from
Apr 20, 2024
Merged

v4 script parser #1191

merged 18 commits into from
Apr 20, 2024

Conversation

SanderMertens
Copy link
Owner

@SanderMertens SanderMertens commented Apr 20, 2024

This PR reimplements the Flecs Script addon. The new implementation:

  • Implements a new & improved syntax
  • Has a new recursive descent parser that creates an AST
  • Has a separate AST visitor that runs the script
  • Has a new AST visitor for translating the AST into a string
  • Has a more streamlined script API for working with expressions/variables
  • Merges the EXPR and SCRIPT addons
  • Adds support for if statements
  • Moves script test suites into their own project

@SanderMertens SanderMertens changed the title V4 script parser v4 script parser Apr 20, 2024
@SanderMertens SanderMertens force-pushed the v4_script_parser branch 12 times, most recently from 8c89fc1 to a40214e Compare April 20, 2024 19:11
@SanderMertens SanderMertens merged commit 705abc4 into v4 Apr 20, 2024
140 checks passed
@SanderMertens SanderMertens deleted the v4_script_parser branch April 20, 2024 19:47
@SanderMertens SanderMertens restored the v4_script_parser branch April 30, 2024 07:38
@SanderMertens SanderMertens deleted the v4_script_parser branch April 30, 2024 08: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