aboutsummaryrefslogtreecommitdiff
path: root/src/tokens.c
Commit message (Collapse)AuthorAgeFilesLines
* Add support for `char` type + string/char literalsMustafa Quraish2022-02-021-0/+22
| | | | | | | | | | | This commit does a few things in one go: - Add support for a `char` type + some changes to support the new size - Add support for character literals. We need some escaping here to be able to use `\n` and `\0`, etc. - Add support for string literals. These are all stored in the `.data` section. Fortunately NASM already handles the escape characters. - Fix some bugs with code generation, specifically using `movsx` to sign extend the smaller types into 64-bit registers.
* Put tokens in their own macro to allow looping over themMustafa Quraish2022-01-301-3/+4
|
* Rename `cup` directory to `src`Mustafa Quraish2022-01-301-0/+70