Skip to content

The final countdown - #3

Merged
Willi363363 merged 4 commits into
mainfrom
dev
Mar 18, 2026
Merged

The final countdown#3
Willi363363 merged 4 commits into
mainfrom
dev

Conversation

@Willi363363

Copy link
Copy Markdown
Owner

No description provided.

geod-dev and others added 3 commits March 18, 2026 07:18
Implement parse_call and export it in parser.h; integrate call
parsing into parse_value and instruction detection. Improve instruction
classification to detect declarations, assignments and calls.

Fix code generation bugs: evaluate operands in correct order, handle
division (clear rdx before div), use leave for function epilogue, and
use consistent EGEN error codes.

Correct stack/variable handling: strdup variable names, adjust offset
calculation, initialize declared variables, and emit proper memory
address formatting. Misc parser and test cleanup and debugging prints
added
Handle parentheses depth when scanning expressions and detect whether a
sized expression contains operators to choose operator vs value parsing.
Implement gen_call (header + source) and wire NODE_CALL into expression
generation. Simplify missing-semicolon error reporting.
Rename stack_data_t to variable_t and remove stack_t. Replace
gen->stack->variables with gen->variables and update get_offset/
create_variable calls. Allocate gen->variables in gen_function and
free it after generating the function. Remove stack management code
and some unused includes.
@Willi363363
Willi363363 merged commit 81e4a93 into main Mar 18, 2026
1 check passed
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.

2 participants