aboutsummaryrefslogtreecommitdiff
path: root/src/ast.c
AgeCommit message (Collapse)Author
2020-07-28Fix build issues in release modedec05eba
2020-07-25load function in progressdec05eba
2020-07-25wip: function pointers and other stuffdec05eba
2020-07-25Rename ssa to irdec05eba
2020-07-25Implicit cast to larger size, number suffix for number bitsizedec05eba
2020-07-25Implicit cast from str to ?&c_char, fix use of parameters (to use sys v ↵dec05eba
registers)
2020-07-25Implement vararg, verify arguments to parametersdec05eba
2020-07-25Fix function call resolved typedec05eba
2020-07-25Start on opengl test, fix stack alignment before call (sys-v)dec05eba
2020-07-25Allow referencing code in imported file (right now for function calls, allow ↵dec05eba
calling a function in another file)
2020-07-25Find tokenizer by code reference instead of using scope parserdec05eba
2020-07-25Move thread work from compiler/parser to thread_work file, fix use after ↵dec05eba
free bug in multithreaded parser allocator
2020-07-25Add extern funcs, parameter registers, fix asm_rm RSP bugdec05eba
2020-07-25Implement more instructions, implement function parameters and argumentsdec05eba
2020-07-25Before interpreter. Cleanup build script. Begin writing code analyzer tool ↵dec05eba
to find common mistakes
2020-07-25Remove nullable... it's bad to have magic. Static analysis can do it insteaddec05eba
2020-07-25Add nullable, add bytecode documentationdec05eba
2020-07-25Starting on asm, implementing extern function call so progress is visibledec05eba
2020-07-25Start on amal programdec05eba
Fix mutex issue in lhs expr which can cause a deadlock when a file has an error and throws and doesn't close the mutex and another thread waits for that mutex. The mutex can instead be removed and ignore race conditions which are uncommon. This should improve memory usage and performance.
2020-07-25Add assignment, while, extern, function signature type, start on bytecodedec05eba
2020-07-25Progressing on bytecode (to c), fix ssa resolving multiple timesdec05eba
2020-07-25Start on bytecode. Commit before os switchdec05eba
2020-07-25Fix ssa call, use correct tokenizer in errordec05eba
2020-07-25Synchronize funccall generate. Uses correct func index nowdec05eba
2020-07-25Resolve cross-file references (with mutex). Not donedec05eba
2020-07-25Use ast pointers to fix resolving, remove try/throwing macrosdec05eba
2020-07-25Add mutex for lhs expr, add error for missing lhs expr for func, structdec05eba
TODO: Use mutex in lhs expr and set resolved_type
2020-07-25Add pub keyword, more import stuff, optimize hash mapdec05eba
Hash map now stores hash of keys to reduce the number of hash operations. Positive: faster insert/get. Negative: more space required (to store usize hash).
2020-07-25Set file scope when parser is created. No need to resolve for every @import ↵dec05eba
instance
2020-07-25Add struct, import caching, binop ops etcdec05eba
2020-07-25Resolve variable referencesdec05eba
2020-07-25Add ssa stringdec05eba
2020-07-25Refactor ssadec05eba
2020-07-25Starting on ssadec05eba
2020-07-25Use ast_initdec05eba
2020-07-25Temporary remove ast resolvingdec05eba
2020-07-25Start on resolving ast. Add recursive declaration checkdec05eba
2020-07-25Add single line, multiline commentsdec05eba
2020-07-25Add check for duplicate variable namesdec05eba
2020-07-25Add hash mapdec05eba
2020-07-25Add ast resolving using multiple threadsdec05eba
Fix issue where not all files are parsed
2020-07-25Use setjmp, longjmp instead of return_if_error to improve performancedec05eba
2020-07-25Add arithmetic (binop) parsingdec05eba
2020-07-25Add string, variable and number. Fix identifier match against const and vardec05eba
2020-07-25Fix compiler join thread, fix compiliation with clangdec05eba
2020-07-25Use multiple threads to parsedec05eba
2020-07-25Separate buffers from general allocation, but still have them in scoped ↵dec05eba
allocator
2020-07-25Fixed CHECK_RESULT macro, use scoped allocatordec05eba
Scoped allocator gives us better performance and cleanup code for error cases is much cleaner
2020-07-25Initial commit, Function declaration work somewhatdec05eba