Skip to content

improve SEXP syntax checking#7365

Open
Goober5000 wants to merge 1 commit intoscp-fs2open:masterfrom
Goober5000:fix/sexp_type_checking
Open

improve SEXP syntax checking#7365
Goober5000 wants to merge 1 commit intoscp-fs2open:masterfrom
Goober5000:fix/sexp_type_checking

Conversation

@Goober5000
Copy link
Copy Markdown
Contributor

Clean up the syntax checker, using clearer variable names for each check, and most importantly unique variable names. Fixes several bugs where syntax checking failed because the same variable was overwritten with incompatible type information.

Also fixes a bug in check_operator_argument_count where the count check never ran due to a mixup of op_index and op_const.

@Goober5000 Goober5000 added cleanup A modification or rewrite of code to make it more understandable or easier to maintain. fix A fix for bugs, not-a-bugs, and/or regressions. sexps A feature or issue related to SEXPs labels Apr 9, 2026
Clean up the syntax checker, using clearer variable names for each check, and most importantly unique variable names.  Fixes several bugs where syntax checking failed because the same variable was overwritten with incompatible type information.

Also fixes a bug in `check_operator_argument_count` where the count check never ran due to a mixup of `op_index` and `op_const`.
@Goober5000 Goober5000 force-pushed the fix/sexp_type_checking branch from f9142bc to 5634100 Compare April 9, 2026 03:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cleanup A modification or rewrite of code to make it more understandable or easier to maintain. fix A fix for bugs, not-a-bugs, and/or regressions. sexps A feature or issue related to SEXPs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant