| Commit message (Collapse) | Author | Age | Files | Lines | |
|---|---|---|---|---|---|
| * | REFACTOR: move sources to src/ | 2026-03-17 | 1 | -2496/+0 | |
| | | |||||
| * | cpp: better handling for #include file not found | 2026-03-14 | 1 | -12/+20 | |
| | | | | | | | Instead of attempting to keep going (since things will probably break due to missing declarations), just report any other #include errors and abort. | ||||
| * | cpp: #include MACRO, free tks | 2026-03-06 | 1 | -0/+1 | |
| | | |||||
| * | cpp: get rid of unnecessary ugly global variable for lexing header name | 2026-03-05 | 1 | -31/+23 | |
| | | | | | Make it a parameter. | ||||
| * | cpp: implement #include MACRO_NAME | 2026-03-05 | 1 | -55/+98 | |
| | | |||||
| * | cpp: #include".." shouldn't look in working directory | 2026-03-05 | 1 | -6/+8 | |
| | | |||||
| * | driver: fix -pthread, -U | 2026-03-02 | 1 | -1/+5 | |
| | | |||||
| * | cpp: fix token spacing edge case when empty macros are involved | 2026-03-01 | 1 | -1/+5 | |
| | | |||||
| * | cpp: fix token spacing (#2) (hopefully) | 2026-03-01 | 1 | -34/+78 | |
| | | |||||
| * | cpp: allow comments between function-like macro name and arguments | 2026-02-26 | 1 | -8/+27 | |
| | | |||||
| * | preprocessor: use shared static buffers for replacement lists | 2026-02-25 | 1 | -150/+178 | |
| | | | | | | | | One for macro definitions' bodies, another one for function-like macros with substituted arguments in the macro expansion stack. Cuts down on a lot of individual allocations. #undef'd macros' replacement lists are "leaked" but that is very minor | ||||
| * | fix various warnings | 2026-02-24 | 1 | -1/+1 | |
| | | |||||
| * | diagnostics: also print #include provenance for warnings | 2026-02-24 | 1 | -1/+2 | |
| | | |||||
| * | cpp: fix __has_builtin | 2026-02-23 | 1 | -2/+8 | |
| | | |||||
| * | cpp: add __COUNTER__ macro | 2026-02-23 | 1 | -131/+172 | |
| | | |||||
| * | preprocessor: fix an edge case with erroneously recursive macro expansion | 2026-02-22 | 1 | -26/+42 | |
| | | |||||
| * | cpp: better diagnostics | 2026-02-21 | 1 | -13/+40 | |
| | | |||||
| * | cpp: add __VA_OPT__ and comma ## __VA_ARGS__ pasting | 2026-02-06 | 1 | -5/+40 | |
| | | |||||
| * | c: GNU __attribute__ stubs | 2026-01-25 | 1 | -0/+1 | |
| | | |||||
| * | driver: -iquote, -isystem, etc | 2026-01-12 | 1 | -15/+27 | |
| | | | | | With GCC-like search order | ||||
| * | cpp: prioritize internal headers over system headers | 2026-01-10 | 1 | -6/+6 | |
| | | |||||
| * | Add version tracking. Starting at 0.1.0 | 2026-01-09 | 1 | -4/+14 | |
| | | |||||
| * | cpp: fix pasting ident+keyword | 2026-01-09 | 1 | -4/+7 | |
| | | |||||
| * | lexer: multibyte escape seqs in wide character literal | 2026-01-09 | 1 | -4/+13 | |
| | | | | | (hacky) | ||||
| * | cpp: fix multiline comment in skipped preprocessor directive | 2026-01-09 | 1 | -2/+16 | |
| | | |||||
| * | cpp: fix single-line comment after preprocessor directive | 2026-01-09 | 1 | -1/+1 | |
| | | | | | It was eating up the newline token | ||||
| * | cpp: nicer handling of predefined macros | 2025-12-29 | 1 | -40/+29 | |
| | | |||||
| * | backend: start implementing aarch64 | 2025-12-28 | 1 | -0/+4 | |
| | | |||||
| * | preprocessor make some errors just warnings | 2025-12-22 | 1 | -4/+6 | |
| | | |||||
| * | c: Fix some dumb uses of initialized stuff | 2025-12-22 | 1 | -3/+7 | |
| | | | | | | | Can't figure out what's wrong with the change to struct expr from 9721d6ba40 but it makes valgrind complain and causes miscompilation of the compiler itself.. | ||||
| * | c: keyword aliases | 2025-12-21 | 1 | -4/+17 | |
| | | | | | | Some linux headers use __signed__ for whatever reason.. this is a general fix for those alternate keyword | ||||
| * | lexer: more small optimizations | 2025-12-21 | 1 | -14/+33 | |
| | | |||||
| * | lexer: note source of #include when error occurs in #included file | 2025-12-20 | 1 | -0/+6 | |
| | | |||||
| * | c: support CRLF newlines | 2025-12-20 | 1 | -3/+11 | |
| | | |||||
| * | lexer: fix remnant use of TKEOF for character | 2025-12-20 | 1 | -9/+7 | |
| | | |||||
| * | optimize lexer a bit more | 2025-12-20 | 1 | -60/+86 | |
| | | |||||
| * | lexer: convert pp-idents to keywords only after preprocessing | 2025-12-20 | 1 | -63/+65 | |
| | | |||||
| * | cpp: GNU extension for named variadic arguments | 2025-12-18 | 1 | -4/+7 | |
| | | |||||
| * | cpp: better error recovery for #define syntax error | 2025-12-18 | 1 | -6/+7 | |
| | | |||||
| * | nicer defaults and facilities for cross-compilation | 2025-12-17 | 1 | -2/+16 | |
| | | |||||
| * | create distinct interned string type | 2025-12-15 | 1 | -22/+21 | |
| | | | | | | | | | | | | | | | Interned strings are used pervasively, so it's a good idea to add a layer of type safety to differentiate them from general cstrs and avoid potential bugs from comparing non-interned and interned strings. Not that that's happened so far that I can remember, but it could. I'm 90% sure it's legal to alias `struct {char c;}` pointers with `char` pointers. This specific typedef gives type safety but with a simple one-way `internstr -> const char *` typecast (with `&istr->c`). Converting the other way around is more intentional: a straight up cast `(internstr)cstr` which sticks out as unchecked and probably wrong, or calling the intern(cstr) function, which is the right way. | ||||
| * | move intern() to mem.c | 2025-12-15 | 1 | -45/+0 | |
| | | | | | | Being in lex.c was vestigial, since it was being used all over the frontend and backend. | ||||
| * | lex: loop with goto instead of tail recursion | 2025-12-15 | 1 | -7/+8 | |
| | | | | | | This uncovered a edgecase with loops and lifetime construction in regalloc! | ||||
| * | lexer: use a hashmap to lookup keywords | 2025-12-15 | 1 | -27/+27 | |
| | | |||||
| * | cpp: support #line directives | 2025-12-14 | 1 | -10/+75 | |
| | | |||||
| * | cpp: correctly handle extra tokens after directives | 2025-12-14 | 1 | -16/+21 | |
| | | |||||
| * | s/amd64/x86_64/ | 2025-12-12 | 1 | -1/+1 | |
| | | |||||
| * | lex: use pmap for macro lookup | 2025-12-12 | 1 | -125/+69 | |
| | | | | | To reduce hashmap code repetition. Also add pmap_del for this purpose | ||||
| * | rename arraylength macro -> countof | 2025-12-11 | 1 | -20/+20 | |
| | | |||||
| * | -trigraphs option | 2025-12-11 | 1 | -3/+3 | |
| | | |||||