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

Flecs script expression refactor #1461

Merged
merged 83 commits into from
Dec 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
83 commits
Select commit Hold shift + click to select a range
5126d70
Initial commit for new expression parser
SanderMertens Nov 19, 2024
0ea2081
Implement type visitor for binary expressions
SanderMertens Nov 21, 2024
2b256c7
Implement type visitor for remaining nodes
SanderMertens Nov 22, 2024
8e5c023
Add unary expression
SanderMertens Nov 22, 2024
ec80c7e
Implement folding for unary and binary expressions
SanderMertens Nov 22, 2024
9955a1c
Implement cast expressions
SanderMertens Nov 22, 2024
ba89187
Move expression implementation to its own folder
SanderMertens Nov 22, 2024
d09a176
Fix folding issues
SanderMertens Nov 25, 2024
eb88440
Fix issues with operator precedence
SanderMertens Nov 26, 2024
98452a5
Implement initializer expressions
SanderMertens Nov 26, 2024
ba96e9b
Add multiline string support
SanderMertens Nov 27, 2024
fe06af4
Don't use static offsets for opaque types
SanderMertens Nov 27, 2024
7e24df7
Implement basic expression eval runtime
SanderMertens Nov 27, 2024
57a55c6
Remove legacy expr implementation
SanderMertens Nov 27, 2024
fc5eacb
Implement unary expression support for runtime
SanderMertens Nov 27, 2024
cf06dcd
Implement initializer expression support for runtime
SanderMertens Nov 27, 2024
20f61fd
Implement element expression support for runtime
SanderMertens Nov 28, 2024
69c3c32
Implement accessing elements of inline array
SanderMertens Nov 28, 2024
316274f
Implement component expressions for runtime
SanderMertens Nov 29, 2024
4a2d67e
Implement basic function support for scripts
SanderMertens Nov 30, 2024
5593603
Implement expression AST cleanup
SanderMertens Dec 2, 2024
2d8ae6c
Implement support for dynamic initializers
SanderMertens Dec 3, 2024
b1a7622
Improve management of non-trivial temporary values
SanderMertens Dec 3, 2024
84f8953
Implement deducing variable name from initializer member
SanderMertens Dec 3, 2024
054c16e
Fix issue with array initializers
SanderMertens Dec 3, 2024
f79b635
Implement separate public functions for parsing/evaluating expressions
SanderMertens Dec 3, 2024
d77ab97
Add tests that ensure expr parser stops at right location
SanderMertens Dec 4, 2024
5e71055
Integrate script and expression parsers
SanderMertens Dec 4, 2024
964e9f1
Fix warnings
SanderMertens Dec 4, 2024
739d17d
Implement expression stack for runtime
SanderMertens Dec 5, 2024
9855d8e
Implement reusable script runtime object
SanderMertens Dec 5, 2024
30b077e
Fix more warnings
SanderMertens Dec 5, 2024
b39b108
Make expression folding optional
SanderMertens Dec 5, 2024
503acf3
Fix query parser regression
SanderMertens Dec 5, 2024
5a0b04d
Fix more warnings
SanderMertens Dec 5, 2024
b40290c
Fix script memory mgmt issues, extend allocator with more debug info
SanderMertens Dec 6, 2024
b3de49c
Unquarantine expression error checking tests
SanderMertens Dec 6, 2024
97eb5f1
Implement support for function arguments
SanderMertens Dec 6, 2024
47488bb
Implement flecs script math functions
SanderMertens Dec 7, 2024
b4e6acc
Add section on expressions to Flecs Script manual
SanderMertens Dec 7, 2024
d942964
Add flecs script examples
SanderMertens Dec 8, 2024
9917e11
Implement ability to specify variables and runtime to ecs_script_eval
SanderMertens Dec 8, 2024
d32da97
Improve naming of script API
SanderMertens Dec 8, 2024
6979e39
Add more script examples
SanderMertens Dec 8, 2024
7540b5c
Fix template instantiation issue while world is deferred
SanderMertens Dec 8, 2024
ffe3e6d
Allow for infinitely nested observer events
SanderMertens Dec 9, 2024
a541def
Fix issues with parsing initializers
SanderMertens Dec 9, 2024
12860bf
Fix issue where value of component defined in script was freed after …
SanderMertens Dec 9, 2024
bf5183d
Fix issue where suspending/resuming readonly mode could corrupt stack…
SanderMertens Dec 9, 2024
cdf08df
Allow for trailing commas in collection initializers
SanderMertens Dec 9, 2024
b4bcd63
Fix issues with template variable hosting
SanderMertens Dec 9, 2024
bd75cf6
Implement detection of invalid components in with scope, allow for N …
SanderMertens Dec 10, 2024
8104954
Fix operator precedence issue, ensure Template pair is always a tag
SanderMertens Dec 10, 2024
b57c2af
Fix issue with using ecs_entity_desc_t::set while deferring is suspended
SanderMertens Dec 10, 2024
c3a2450
Implement folding of const variables
SanderMertens Dec 10, 2024
74625ff
Improve type inferencing in boolean expressions
SanderMertens Dec 11, 2024
be4e736
Fix illegal memory access in ecs_add_path_w_sep
SanderMertens Dec 11, 2024
0bddcc6
Remove unused ecs_stage_t::parser_tokens member
SanderMertens Dec 11, 2024
99bc073
Add reusable script runtime to stage, reduce allocations during templ…
SanderMertens Dec 11, 2024
f86e608
Fix memory leaks from casting non-trivial values
SanderMertens Dec 11, 2024
3f9c4bf
Fix leaks when using FLECS_USE_OS_ALLOC
SanderMertens Dec 11, 2024
61c5088
Fix issue where code was accessing world->flags on stage object
SanderMertens Dec 11, 2024
ad1d496
Implement ability to define global script variables
SanderMertens Dec 12, 2024
4388be9
Reimplement string interpolation for expression parser
SanderMertens Dec 13, 2024
bb99459
Implement support for entity name expressions
SanderMertens Dec 13, 2024
8b7c330
Implement support for for range loops
SanderMertens Dec 13, 2024
c439fe2
Add flecs.script.math.abs
SanderMertens Dec 13, 2024
9e10fc5
Fix issue with mod operator, check for division by zero
SanderMertens Dec 14, 2024
976ae68
Fix issue with reporting errors that contain format characters
SanderMertens Dec 14, 2024
0e1757f
Implement divide by zero detection in fold visitor
SanderMertens Dec 14, 2024
4f91998
Implement improved error checking for templates
SanderMertens Dec 14, 2024
c632d56
Improve type conversion error messages
SanderMertens Dec 14, 2024
0d1dc4f
Fix issue with templates that contain expressions with self references
SanderMertens Dec 14, 2024
5b5c27d
Fix issue where global with was applied to template code
SanderMertens Dec 14, 2024
75efeaf
Fix issue with for loops in templates
SanderMertens Dec 14, 2024
5deb1cb
Fix issues with parsing binary expressions without spaces
SanderMertens Dec 14, 2024
5d6b849
Fix memory leaks
SanderMertens Dec 14, 2024
8dad0d8
Fix fuzzing errors
SanderMertens Dec 14, 2024
b9f0d4b
Fix memory leaks in meta cursor string conversions
SanderMertens Dec 14, 2024
a65b71c
Fix warnings, add typos exception for Fuzzing.c
SanderMertens Dec 15, 2024
a977d43
Fix access to uninitialized ecs_cmd_t::id field
SanderMertens Dec 15, 2024
308a728
Add more sections to script manual
SanderMertens Dec 15, 2024
0051026
Add more builtin script functions, add documentation on builtin funct…
SanderMertens Dec 15, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion _typos.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
files.extend-exclude = ["distr/*"]
files.extend-exclude = ["distr/*", "test/script/src/Fuzzing.c"]

# typos can't handle "2nd" as a word (yet?)
default.extend-ignore-identifiers-re = ["_2nd"]
Expand Down
Loading
Loading