Functions #1
Labels
No Label
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No Milestone
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: TheCurle/Erythro#1
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The current way of parsing functions is no good.
Currently, the left branch of the tree is passed down the chain, into the call routines and thus into the asm.
For functions that call other functions, like "Print(OtherFunction())", this will cause the first function to be called twice, ending up something like this in ASM:
The first call should be to OtherFunction, its return passed to Print. But it is not.
The fix for this would be a rewrite of a large section of the AST parsing system.