aboutsummaryrefslogtreecommitdiff
path: root/src/builtins.h
Commit message (Collapse)AuthorAgeFilesLines
* Add helper to create builtins for syscalls + implement `read()`Mustafa Quraish2022-02-031-1/+4
| | | | | | | | | | This was possible, but very tedious to do by hand before. Now we automate it based on the number of arguments. Note that currently we can't just add `syscall3()` etc as builtins because the actual numbers for the system calls vary from one system to another, and we want to maintain support for macOS and Linux (at least for now).
* Move builtins to a separate fileMustafa Quraish2022-02-031-0/+6
Probably want to add more builtins in the future, so pulling it out of `parser.c` seems like the reasonable thing to do