aboutsummaryrefslogtreecommitdiff
path: root/src/tokenizer.c
AgeCommit message (Collapse)Author
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 compiler option for number of threads to use (instead of env)dec05eba
2020-07-25Add assignment, while, extern, function signature type, start on bytecodedec05eba
2020-07-25Test errors, stop working on errordec05eba
2020-07-25Resolve cross-file references (with mutex). Not donedec05eba
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-25Add struct, import caching, binop ops etcdec05eba
2020-07-25Fix bugsdec05eba
Fix hash map bug on rorder (invalid size). Fix string to int/float conversion in tokenizer. Add more ssa functions
2020-07-25Start on resolving ast. Add recursive declaration checkdec05eba
2020-07-25Add single line, multiline commentsdec05eba
2020-07-25oofdec05eba
2020-07-25Add check for duplicate variable namesdec05eba
2020-07-25Add hash mapdec05eba
2020-07-25Add arithmetic (binop) parsingdec05eba
2020-07-25Readd requirement for semicolon, makes things much simpler (for user as well)dec05eba
2020-07-25Use 'fn' to define closure to make parsing/reading the language easierdec05eba
It caused issues when you have parentheses to surround math expression, for example: ((func() + 34) * 54) is easier to parse if closure has to begin with 'fn'. Also removed requirement for semicolons. Semicolons can't even be used optionally yet.
2020-07-25Add string, variable and number. Fix identifier match against const and vardec05eba
2020-07-25Cleanup.. im stupiddec05eba
2020-07-25Shitdec05eba
2020-07-25Fix crash in parser import, optimize tokenizer_consume_if to not reparse if ↵dec05eba
already parsed
2020-07-25Fix compiler join thread, fix compiliation with clangdec05eba
2020-07-25Use multiple threads to parsedec05eba
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