Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
i can't take this anymore (parser backup) (#5)
* backup: moments before disaster * feat: start defining error enums * test: start parser test setup * test: successfully setup tests for opRel grammar rule * test: setup tests for currently implemented fator parsing rules * feat: fator simple array * test: fix fator neg test * test: fix fator neg tests * test: start programming error messages * test: setup error messages, todo: finish function * test: finish error printing function * test: fator 1d array, no expr * test: remake error printing function * doc: add new language spec * test: todo: finish close bracket test * test: complete simple array tests * refactor: remove unused token parameter * test: single, accept overconsuming tokens? * doc: update README.md * Parser object added for state persistence across calls (#4) * fix: adjustments of operator function * test: design for multiple token parser tests * fix: start logic changes for token consumption * test: finish simple array tests with new parser design * test: finish lone factor id tests * test: stop unit for now: try integration? * test: start integration tests * bug: token sign code is not persisted (garbage) * refactor: pass parser object by reference * feat: major union overwriting bug corrected * test: finish invalid type test case * test: finish no var id integration test case * test: finish invalid array subscript declaration integration test * test: finish invalid array declaration bracket close on array dec * test: add invalid variable initialization test * test: add multiple variable declaration * test: todo: multidimensional array declaration * test: multidimensional array declaration error * test: invalid array openings * test: invalid type inside array initialization * test: finish bad array initialization case * test: no function id in declaration * test: function prototype opening failure * test: invalid function prototype param type * test: add no id case for function prototype param * test: roll back wrong error * test: add no valid token after type of function proto * test: finish unclosed proto array bracket param * test: 2d array continuation * test: 2d array closing on proto param * test: invalid array dimension in prot param * doc: update README.md * todo: replicate declVar logic with declProc * seconds before disaster * refactor: prot function, todo make it lmao * refactor: prot param function for recursion * test: colorized output for better feedback * test: remove color, todo: recursive prot param * test: finish recursive proto param test * feat: update main for manual testing (i feel lost) * feat: update main.c for manual testing feedback * fix: incorrect def bool check that broke tests
- Loading branch information