aboutsummaryrefslogtreecommitdiff
path: root/src/parser.h
diff options
context:
space:
mode:
authorMustafa Quraish <[email protected]>2022-01-30 01:10:35 -0500
committerMustafa Quraish <[email protected]>2022-01-30 01:10:35 -0500
commit33e86c66ce739913d453808d3fecd6670a0e9fe1 (patch)
tree7bfcb4d7e9bf67dd979d47d8c89a9e56bff96eec /src/parser.h
parentMake the compiler / scripts work on Linux too (yay!) (diff)
downloadcup-33e86c66ce739913d453808d3fecd6670a0e9fe1.tar.xz
cup-33e86c66ce739913d453808d3fecd6670a0e9fe1.zip
Functions, yay!
We now support function calls! We don't have support for forward declaring functions right now though, so no mutual recursion is possible. The arguments are passed via the stack instead of through registers (unlike the x86_64 calling convention, I think). We'll probably need some sort of primitives built into the language for syscalls eventually because of this. Return types are also not checked, and right now it's possible to have a function that doesn't return anything even when the caller expects it to, error checking and reporting definitely needs to be improved.
Diffstat (limited to 'src/parser.h')
0 files changed, 0 insertions, 0 deletions