Commit Graph

533 Commits

Author SHA1 Message Date
863f07d417 Add learnXinY example file 2024-06-18 01:33:34 -04:00
ed935eb882 Fix array_lvalue 2024-06-18 01:32:44 -04:00
f5dc37c86c Add test for array member assignment 2024-06-18 01:31:23 -04:00
734cc54d77 Dump test results to console again 2024-06-17 17:35:21 -04:00
7e261bea9b Fix 'use' test to use 'import' instead 2024-06-17 17:33:32 -04:00
1621968fc8 Fix issue with bitfields 2024-06-17 17:31:50 -04:00
eb2a9027b0 Fix issue with 'when' statements 2024-06-17 17:23:39 -04:00
6e07749cbb Tweak test output 2024-06-17 01:11:15 -04:00
c24a53174e Clean up symbol_renames.txt 2024-06-16 20:07:33 -04:00
5bfc15c975 Fix issue with binding 'foo := use baz' 2024-06-16 19:52:55 -04:00
ae538ba9eb Properly produce an error for foo := use -lbaz 2024-06-16 18:43:37 -04:00
28de9aeb84 Deprecate '-l' as a command line flag but instead support 'use -lblah' 2024-06-16 18:40:34 -04:00
4724d40e41 Support running with tomo -lfoo file.tm 2024-06-16 18:12:32 -04:00
32e82fdbe3 Remove some dead code and support -l as a tomo flag 2024-06-16 18:09:54 -04:00
9f8be0c502 Support library name as a separate environment field from namespace 2024-06-16 16:08:35 -04:00
7dcb5bea3f Support top-level imports 2024-06-16 15:13:48 -04:00
7a53e10826 Fix issue with type namespaces not getting properly prefixed by library
namespace
2024-06-16 15:12:00 -04:00
729d856139 Better error reporting 2024-06-14 13:45:01 -04:00
6f11f5cbb4 Replace non-identifier characters with '_' when generating prefixes 2024-06-13 22:56:45 -04:00
ce66358d06 Add tomo -u foo to uninstall foo 2024-06-13 21:24:22 -04:00
81d55cacb7 Do dynamic library symbol prefixing using 'patchelf' 2024-06-13 21:20:50 -04:00
dab2c399f1 Split import/use into separate concepts 2024-06-13 13:17:51 -04:00
5d682df66c Remove unused fields on AST 2024-06-13 13:03:13 -04:00
5757a5023c Support loading shared libraries 2024-06-13 12:59:19 -04:00
217eb51280 Add manpage 2024-06-11 13:38:46 -04:00
e9ba4411c9 Change default optimization level to whatever the C compiler's default
is
2024-06-11 13:37:33 -04:00
fef63dfef8 Add library documentation 2024-06-10 12:11:44 -04:00
56b9684362 Make library name specifiable by a command line arg 2024-06-10 11:20:14 -04:00
77aa022df0 Change how tomo command line behavior works and how shared libraries are
built/installed.
2024-06-09 16:16:22 -04:00
7c255c517e Remove linker flags that aren't needed anymore 2024-06-09 14:41:22 -04:00
298c476398 Change build process to use static objects instead of dynamic linking
for compiler
2024-06-09 14:40:34 -04:00
39ac885125 Change c/header transpilation order and fix some issues 2024-06-08 14:39:52 -04:00
66062f399a Change the rules for tests so they recompile and save their output 2024-06-06 17:11:02 -04:00
f834073264 Fix issue with importing modules 2024-06-06 16:36:49 -04:00
8c7d530080 Split header compilation into a separate function 2024-06-06 16:28:53 -04:00
31c8d0af15 Fix float literals for integer floats 2024-06-06 16:20:36 -04:00
e9abf8a370 Prefer 'sizeof(t[n])' over 'sizeof(t)*n' 2024-06-06 15:05:35 -04:00
b4dc858794 Change how floats are serialized 2024-06-01 11:25:14 -04:00
11efaa6f8f Change how behavior is handled for running files with no main() func 2024-05-31 20:34:29 -04:00
fdaadee133 Fix imported symbol prefixes 2024-05-31 20:32:02 -04:00
9536487df8 Fix "extern" issue for real 2024-05-31 13:55:34 -04:00
010089fceb Change where 'extern' keyword goes in codegen for variable declarations 2024-05-31 13:49:48 -04:00
5badc29496 Top-level inline C code goes in C file, not header 2024-05-28 19:02:00 -04:00
913d8a538f Add -C cleanup flag and tweak where .so files get installed 2024-05-28 18:58:42 -04:00
94aa0620f2 Shared object files should create a .o first and then .so after 2024-05-28 02:50:01 -04:00
74eed9bc30 Better error checking 2024-05-28 02:38:14 -04:00
e382b5d2d9 Better error reporting 2024-05-28 02:35:21 -04:00
076ead369c Change default c compiler to 'cc' 2024-05-28 02:32:00 -04:00
8df8f5bb82 Changes to dependency tracking, compilation, and object linking 2024-05-28 00:30:09 -04:00
cb634f61f7 Remove unused code 2024-05-27 18:02:40 -04:00