Commit Graph

133 Commits

Author SHA1 Message Date
Sasha Koshka b3ae80e809 Add problematic multiunit test case from #49 2024-02-27 03:06:54 -05:00
Sasha Koshka 90d735163b Generator's "errNotFound" is more useful when it bubbles to the surface 2024-02-27 02:29:52 -05:00
Sasha Koshka 23052aa6f0 Changed repository import paths 2024-02-22 19:22:53 -05:00
Sasha Koshka f06a0e29b9 Updated generator tests 2024-02-19 23:05:30 -05:00
Sasha Koshka 7600bc28d9 Fixed generator map sorting 2024-02-19 21:57:21 -05:00
Sasha Koshka a22b6137d5 Types are given proper link names in the generator 2024-02-19 21:09:21 -05:00
Sasha Koshka 306b029951 Generator now has module support 2024-02-19 21:00:20 -05:00
Sasha Koshka 3d75cdbd02 Parser now has something of a concept of modules 2024-02-14 01:44:25 -05:00
Sasha Koshka b743e56c2a Updated generator 2024-02-13 13:12:53 -05:00
Sasha Koshka bf73821dbd New test for generator confirmed to work, filled out 2024-02-10 21:31:10 -05:00
Sasha Koshka 2571fcde99 Add same test as stub to generator 2024-02-10 21:20:24 -05:00
Sasha Koshka deae98001d Fix small issues with generator readme 2024-02-10 18:32:35 -05:00
Sasha Koshka a91922e749 Add generator README.md 2024-02-10 18:26:51 -05:00
Sasha Koshka 35299ea526 Updated generator's test-common 2024-02-09 04:02:55 -05:00
Sasha Koshka 100861dc47 Added module-level doc comments to generator and generator/native 2024-02-09 00:57:06 -05:00
Sasha Koshka 122cafbc2b Unexport generator.resultMode 2024-02-08 16:06:00 -05:00
Sasha Koshka 74e84c7da4 Fixed all generator tests 2024-02-08 13:32:04 -05:00
Sasha Koshka 94a25f0aac Generator compiles and runs 2024-02-08 13:14:21 -05:00
Sasha Koshka 66771b3145 Put functionality from generator/test-common.go in its own package 2024-02-01 01:59:17 -05:00
Sasha Koshka f659866ae1 Fix crash when using int literals as floats 2024-01-29 13:29:53 -05:00
Sasha Koshka 4aab296de3 Update tests 2024-01-29 03:30:54 -05:00
Sasha Koshka b4cb7454b0 Slice length fields are properly stored as Index values 2024-01-29 03:11:43 -05:00
Sasha Koshka c0f771db09 Update tests 2024-01-29 02:20:16 -05:00
Sasha Koshka 5c8749d8cd Updated test cases for literals 2024-01-29 00:30:48 -05:00
Sasha Koshka 06759a6e39 Array literals and string literals now exhibit identical behavior
They both fill unspecified data with zeros, and add a null
terminator when directly assigned to a pointer.
2024-01-29 00:25:34 -05:00
Sasha Koshka 192044e074 String generation now uses correct type names, data length, and nulls 2024-01-28 17:10:03 -05:00
Sasha Koshka ff3efe646e Fix tests 2024-01-28 16:44:34 -05:00
Sasha Koshka 01526aa914 Add source code printout for tests 2024-01-28 14:46:47 -05:00
Sasha Koshka 31cf892a63 Broke up the monolithic TestLiteral 2024-01-28 14:36:04 -05:00
Sasha Koshka fa90e50c3b Increased the coverage of TestLiteralArray 2024-01-28 14:15:54 -05:00
Sasha Koshka 83aefbae07 *Greatly* reduced the amount of excess IR related to string literals 2024-01-28 14:11:41 -05:00
Sasha Koshka 1f53fc5214 Struct literals now support irDestLoc 2024-01-28 04:50:18 -05:00
Sasha Koshka 3d6142f496 Added the ability for array literals to be undersized 2024-01-28 04:43:01 -05:00
Sasha Koshka 235252b591 Added test for nested array literals
Who knew it would work first try?
2024-01-28 04:24:15 -05:00
Sasha Koshka 185a6114a6 Array literals now support irDestLoc 2024-01-28 04:18:33 -05:00
Sasha Koshka a4c7212709 Add more tests for loops 2024-01-28 03:29:49 -05:00
Sasha Koshka e9a9fc75c6 Fixed extra lines after IR blocks 2024-01-28 03:18:39 -05:00
Sasha Koshka 1b4a0621de Fix some issues with control flow, add tests 2024-01-28 03:16:05 -05:00
Sasha Koshka 7e4abb7bba Add test case for comparisons on defined types 2024-01-28 02:18:18 -05:00
Sasha Koshka 9a4241cb11 Updated all tests except for literal_test.go
You Will See Why
2024-01-27 23:24:19 -05:00
Sasha Koshka 3ca9b5ff50 Well it would help if it generated well formed IR 2024-01-27 23:00:03 -05:00
Sasha Koshka 079a05ccca Assignment coercions are much more IR efficient 2024-01-27 22:45:28 -05:00
Sasha Koshka cfe12634ef Complete TestInterfaceInStruct (no longer segfaults somehow) 2024-01-27 19:49:22 -05:00
Sasha Koshka 928fef02cd More using qualified names in IR 2024-01-27 18:16:30 -05:00
Sasha Koshka 2f8b3fcad6 Oh my god I swapped the columns 2024-01-27 18:09:51 -05:00
Sasha Koshka 7bc24eabe0 Added cool output to failed tests 2024-01-27 18:07:49 -05:00
Sasha Koshka 839178d1d2 Literal generation now uses qualified type names when possible 2024-01-27 17:16:23 -05:00
Sasha Koshka f039be92b6 Remove redundant val variable/declaration generation 2024-01-27 14:17:52 -05:00
Sasha Koshka c0f004d3b8 Rename some routines in data 2024-01-27 14:03:38 -05:00
Sasha Koshka 55f0138a64 Updated more tests (cutting out extra load insts) 2024-01-27 17:35:33 +00:00