Commit Graph

572 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 e5344c034b Merge pull request 'test-compiled-code' (#48) from test-compiled-code into main
Reviewed-on: #48
2024-02-27 07:50:17 +00:00
Sasha Koshka d6f0c470ee Compiler has bug() to wrap unexpected errors 2024-02-27 02:45:32 -05:00
Sasha Koshka ef07772ce4 Add some interface tests to compiler 2024-02-27 02:36:35 -05:00
Sasha Koshka 7720a1f629 Compiler debug output makes more sense 2024-02-27 02:33:35 -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 1d90b3c7d7 Fix analyzer.Tree.methodExists and clear raw maps
This was too urgent not to continue without
2024-02-27 02:24:03 -05:00
Sasha Koshka 5d5ffb9c4c Add test for printing argv
Disabled for now due to #47
2024-02-27 00:22:02 -05:00
Sasha Koshka b9eec89773 Add test case for counting cli args 2024-02-27 00:09:01 -05:00
Sasha Koshka 64d85c7b70 Temporarily circumvent crash in analyzer #46 2024-02-27 00:00:33 -05:00
Sasha Koshka 1d4f958efa Added a test case for depending on compiled units 2024-02-26 23:59:47 -05:00
Sasha Koshka b441cc1e7b Added a test case for depending on compiled units 2024-02-26 23:50:14 -05:00
Sasha Koshka 48876a8229 Tests can now compile dependencies first 2024-02-26 23:32:40 -05:00
Sasha Koshka c9f453f35e Fixed test case file for systeminclude 2024-02-26 14:40:03 -05:00
Sasha Koshka c20a5deede Resolver no longer requires system units to be files (????????) 2024-02-26 14:39:44 -05:00
Sasha Koshka 496d4aeb01 Added test case for grabbing a module from /usr/include/fspl 2024-02-26 14:33:31 -05:00
Sasha Koshka aa3cabe82b Fix hello world test 2024-02-26 14:24:47 -05:00
Sasha Koshka 2a74389830 Compiler test now uses testcommon.CompareHex 2024-02-26 14:22:51 -05:00
Sasha Koshka e898379707 Add testcommon.CompareHex 2024-02-26 14:22:33 -05:00
Sasha Koshka dc47a4c8c0 testcommon.LogColumns has a configurable width 2024-02-26 14:18:09 -05:00
Sasha Koshka 2edbd6c8b3 Split compiler_test.go into common file and test file 2024-02-26 14:04:37 -05:00
Sasha Koshka 76eed1153e Added test case for exit code 2024-02-26 14:03:10 -05:00
Sasha Koshka c28ea57777 Compiler test now holds output from compiler until end 2024-02-26 13:56:37 -05:00
Sasha Koshka 04420cb7d3 Compiler uses a default optimization level when unconfigured 2024-02-26 13:46:54 -05:00
Sasha Koshka a418baa113 Add the hello world test case 2024-02-26 13:46:30 -05:00
Sasha Koshka 27b11c0cdc Add a test-data directory for compiler 2024-02-26 13:46:10 -05:00
Sasha Koshka 6f9b6f07d9 Compiler now passes relatvive paths to fs.FS as it should 2024-02-26 12:50:49 -05:00
Sasha Koshka d2f4dcd8f3 Much of the compiler now uses fs.FS instead of os 2024-02-26 11:46:59 -05:00
Sasha Koshka 59d38d8c9d Moved everything that should touch "os" to compiler.go 2024-02-26 11:36:16 -05:00
Sasha Koshka aa07bee99d Moved Compiler.CompileUnit into another file
Need to be sure it is the only thing that can access OS files
2024-02-26 11:35:03 -05:00
Sasha Koshka c93f3916a1 Fixed doc for fsplc and fsplmod 2024-02-23 03:20:51 -05:00
Sasha Koshka 14b36bba1a Add a tool to manage modules 2024-02-23 01:41:36 -05:00
Sasha Koshka 3297f6671e Lexer skips over zero runes now 2024-02-23 01:08:58 -05:00
Sasha Koshka 1fd34731ff Metadata.String quotes UUID 2024-02-23 00:24:09 -05:00
Sasha Koshka bd4ed45a45 entity.Metadata now has String() 2024-02-23 00:18:46 -05:00
Sasha Koshka 4987ed0b4d Cli now handles printing stuff 2024-02-22 21:24:07 -05:00
Sasha Koshka 39f62a3d3f Cli now displays usage information for subcommands correctly 2024-02-22 20:25:37 -05:00
Sasha Koshka 367f4c5d34 Update fsplc to use new cli features 2024-02-22 20:17:38 -05:00
Sasha Koshka 793314fdd7 Update fsplc doc 2024-02-22 20:17:23 -05:00
Sasha Koshka 5ca80ded92 Add more functionality to cli package 2024-02-22 20:12:41 -05:00
Sasha Koshka 23052aa6f0 Changed repository import paths 2024-02-22 19:22:53 -05:00
Sasha Koshka 9d43ef75ee Changed go.mod version to 1.19 2024-02-21 13:49:46 -05:00
Sasha Koshka 418e013dda Reflected those changes in unit design doc 2024-02-21 13:46:26 -05:00
Sasha Koshka ddafa0935a Module search paths are more useful now 2024-02-21 13:45:51 -05:00
Sasha Koshka 24b15cfea6 Merge branch 'implement-modules' 2024-02-21 13:27:35 -05:00
Sasha Koshka bc9f1302b2 Merge branch 'main' into implement-modules 2024-02-21 18:26:44 +00:00
Sasha Koshka e4eb8c4e62 Updated compiler to use Resolver 2024-02-21 13:21:58 -05:00
Sasha Koshka 222dae2dac Add a "Resolver" that resolves unit addresses 2024-02-21 13:21:41 -05:00
Sasha Koshka 39d584bd1b Compiler understands compiling to . 2024-02-20 01:48:18 -05:00
Sasha Koshka d4a7420471 Compiler now only parses module files that end in .fspl 2024-02-20 01:39:07 -05:00