| Commit message (Collapse) | Author | Age | Files | Lines | ||
|---|---|---|---|---|---|---|
| ... | ||||||
| * | Add some arithmetic binary operations into lex+parse+generation | Mustafa Quraish | 2022-01-28 | 5 | -19/+184 | |
| | | ||||||
| * | Corrent incorrect `break` in Lexer | Mustafa Quraish | 2022-01-28 | 1 | -5/+6 | |
| | | ||||||
| * | Scripts: Reorganize a bit, add some rudimentary shell-testing | Mustafa Quraish | 2022-01-28 | 4 | -16/+89 | |
| | | | | | | Just to make sure we don't break stuff. We'll probably want better unit tests specifically for each part once we're more stable. | |||||
| * | Add some basic args parsing so we can test stuff from the CLI | Mustafa Quraish | 2022-01-28 | 1 | -23/+66 | |
| | | ||||||
| * | Examples: Add example for unary ops, remove type hints | Mustafa Quraish | 2022-01-28 | 2 | -2/+8 | |
| | | | | | We ignore the types for now anyway, so let's just leave them out | |||||
| * | Lexer: Support inline comments | Mustafa Quraish | 2022-01-28 | 1 | -1/+10 | |
| | | | | | | Inline comments are now supported with `// Comment here`. No block comments (for now) | |||||
| * | Ignore nasm, object and executable files | Mustafa Quraish | 2022-01-28 | 1 | -1/+5 | |
| | | ||||||
| * | Add initial code generation capabilities | Mustafa Quraish | 2022-01-28 | 2 | -0/+91 | |
| | | | | | | | Currently we output the assembly to a hard-coded file called `output.nasm`. Until the compiler is more mature this should be OK enough | |||||
| * | Lexer+Parser: Add support for some unary operations | Mustafa Quraish | 2022-01-28 | 6 | -8/+50 | |
| | | ||||||
| * | Add some scripts to help assemble generated output and run it | Mustafa Quraish | 2022-01-28 | 3 | -1/+32 | |
| | | | | | | | | Until we have a better way of outputting the data, we're just using return codes for now. The `test.sh` script creates the compiler, compiles the selected file into ASM, then assembles and links the generated output, after which it runs it and shows the exit status. | |||||
| * | Add a parser, dump the AST in main | Mustafa Quraish | 2022-01-28 | 3 | -5/+156 | |
| | | | | | | Very, very rudimentary, and can only parse integer literals, but it's a start | |||||
| * | Add AST/type definitions | Mustafa Quraish | 2022-01-28 | 2 | -0/+142 | |
| | | | | | | Just the basic building blocks for now, probably need to re-think how these are stored. | |||||
| * | Shorten Lexer method names to next/peek | Mustafa Quraish | 2022-01-28 | 2 | -7/+10 | |
| | | ||||||
| * | Use custom macro for tokens enum+names | Mustafa Quraish | 2022-01-28 | 2 | -81/+75 | |
| | | ||||||
| * | Initial commit + start of lexer | Mustafa Quraish | 2022-01-24 | 11 | -0/+449 | |