Commit Graph

72 Commits

Author SHA1 Message Date
Sasha Koshka 88e10158ae It is now possible for tests to pass on windows 2024-03-31 01:33:28 -04:00
Sasha Koshka 93d4aea1b1 Compiler tests properly add extension to obj files 2024-03-31 01:33:28 -04:00
Sasha Koshka 810175b6c9 Object files have platform specific extensions 2024-03-31 01:33:28 -04:00
Sasha Koshka b6b0a1e592 parent 00110039e2
author Sasha Koshka <sashakoshka@tebibyte.media> 1711851967 -0400
committer Sasha Koshka <sashakoshka@tebibyte.media> 1711862974 -0400

Compiler tests now run on Windows

Compiler tests show linker log

Compiler tests show linker log
2024-03-31 01:33:08 -04:00
Sasha Koshka 00110039e2 Compiler defaults to .o when output name isn't specified 2024-03-28 18:16:58 -04:00
Sasha Koshka 15e418d8c1 Add custom fs implementation 2024-03-28 18:12:37 -04:00
Sasha Koshka 1c61235b63 openAbsolute should strip out the volume name on Windows 2024-03-28 17:16:50 -04:00
Sasha Koshka 4e6103418c Compiler normalizes paths before passing them to an fs 2024-03-28 16:52:31 -04:00
Sasha Koshka eccb2e9a5b Compiler uses runtime.GOOS instead of conditional compilation 2024-03-28 13:11:27 -04:00
Sasha Koshka 76615df4d4 Add option to specify module search paths manually 2024-03-27 13:13:22 -04:00
Sasha Koshka 2caed5b4ae Add an executable filetype 2024-03-27 12:52:20 -04:00
Sasha Koshka cd396952f2 Certain filename extentions depend on target os 2024-03-27 12:40:45 -04:00
Sasha Koshka 0404202691 Compiler takes in a target 2024-03-27 12:10:19 -04:00
Sasha Koshka 10246f7268 Add untested windows native paths 2024-03-27 11:24:26 -04:00
Sasha Koshka 2edda8a960 Add stub for Windows native parameters 2024-03-26 13:15:56 -04:00
Sasha Koshka 11e7a83eb4 Add native paths for unix 2024-03-26 13:15:03 -04:00
Sasha Koshka 9b45bc56d4 Resolver is now used behind a pointer 2024-03-26 13:12:38 -04:00
Sasha Koshka b9e0b3265e fsplc and fsplmod use rooted paths to identify things
Remedies #71
2024-03-26 02:07:27 -04:00
Sasha Koshka cad6a0759a Compiler now uses LLVM-like output filetype names
Remedies #40
2024-03-26 01:53:10 -04:00
Sasha Koshka 6c7fcf6045 Add compiler test for puts libc function 2024-03-26 01:18:39 -04:00
Sasha Koshka 650289f03e Generate switch statements 2024-03-26 00:42:27 -04:00
Sasha Koshka 5dda7b2186 Generate match statement default cases 2024-03-25 22:34:24 -04:00
Sasha Koshka 3cd3384006 Remove the star from array literals 2024-03-24 20:31:25 -04:00
Sasha Koshka 7f58f7da8b Change the compiler test names to make them more legible 2024-03-24 20:09:10 -04:00
Sasha Koshka 70c58f74de Fix assignment from array to slice 2024-03-24 19:57:24 -04:00
Sasha Koshka 185ef7f6f9 For loops loop back around to the loop header 2024-03-24 03:35:04 -04:00
Sasha Koshka f3c0901493 For loop elements are properly copied 2024-03-24 03:09:33 -04:00
Sasha Koshka f84ddf8cad What? 2024-03-20 13:29:26 -04:00
Sasha Koshka cd08801a29 Added a timeout for compiler tests 2024-03-20 12:38:46 -04:00
Sasha Koshka a4443444c1 Add compiler test cases for loops 2024-03-20 11:35:14 -04:00
Sasha Koshka babcce643f Update compiler 2024-03-14 03:20:55 -04:00
Sasha Koshka db98e590fc Change interface symbol from ~ to & 2024-03-13 23:05:58 -04:00
Sasha Koshka e0d4be8db8 Removed "in" from match statement 2024-03-13 22:44:11 -04:00
Sasha Koshka be08308cb2 Add a compiler test for this 2024-03-06 17:41:52 -05:00
Sasha Koshka 040be67476 Add compiler tests for unions/matches 2024-03-06 15:06:21 -05:00
Sasha Koshka 005b2fcd56 Inline string literal since #46 has been remedied 2024-03-01 00:17:39 -05: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 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