Commit Graph

1398 Commits

Author SHA1 Message Date
00e7ce2bd0 Remove dup output 2024-03-03 15:14:24 -05:00
ea7fcd85b4 Make load method be "use$name" 2024-03-03 15:04:36 -05:00
5641d0c837 Replace -ftrapv with -fsanitize=signed-integer-overflow 2024-03-03 14:51:28 -05:00
09b1d07d8b Clean up transpiling into separate .c/.h files 2024-03-03 14:45:36 -05:00
7237cac2e5 Add different compilation modes 2024-03-03 14:36:09 -05:00
fce79cf578 Wrap "&x" in parens to avoid ambiguity 2024-03-03 14:34:13 -05:00
5cbdf8fc61 Return correct exit status 2024-03-03 14:18:08 -05:00
c72d4ec8eb Make constructors actually functions for enums 2024-03-03 14:12:40 -05:00
bde2a0b338 Cleanup/fixes 2024-03-03 13:44:22 -05:00
0256972ca6 Fix test 2024-03-03 13:38:27 -05:00
bf5a725345 Definitively go with "Int" and "Num" over "Int64" and "Num64", plus add
Int__bits()
2024-03-03 13:37:05 -05:00
ec7a9e5f10 Initial pass at namespacing 2024-03-03 13:04:50 -05:00
4dc70c84d4 First working method calls 2024-02-29 13:49:24 -05:00
8171a38b71 Add type namespaces 2024-02-29 13:28:39 -05:00
764d9fe73b Remove unnecessary code 2024-02-29 13:05:10 -05:00
ab17cf7539 Flip COW bit when dereferencing pointers 2024-02-29 13:00:28 -05:00
0f34bd8f53 Bump refcounts for .keys/.values 2024-02-29 12:54:29 -05:00
dcd4fd7797 Fix const issue 2024-02-29 12:46:55 -05:00
291a0ed40c Simplify/clean up table iteration code 2024-02-29 12:45:10 -05:00
ec75208980 Fix up some import issues and improve arrays to use saturating refcounts
instead of .copy_on_write
2024-02-29 12:37:09 -05:00
a7bbbe9584 Const typeinfos 2024-02-27 13:47:29 -05:00
805c26e65a Pass typeinfos 2024-02-27 13:43:38 -05:00
236cce883f Update docs 2024-02-27 13:41:59 -05:00
ce0e1c25e2 Stop using namespace types 2024-02-27 13:39:12 -05:00
55d44fe9f2 Tweaks 2024-02-27 12:46:14 -05:00
1e6df09900 Fix up some type namespace issues 2024-02-26 23:10:19 -05:00
115c75692b Better error checking 2024-02-26 23:02:09 -05:00
8f5a40b944 Typecheck inline C code 2024-02-25 17:43:52 -05:00
975185c5df Fix lto warning 2024-02-25 17:43:39 -05:00
32e3aba554 Remove comment 2024-02-25 16:32:45 -05:00
741617a17e Add for-else block 2024-02-25 16:02:36 -05:00
70f7f15781 Implement reductions 2024-02-25 15:28:46 -05:00
18db0fcee8 Add test for table iteration 2024-02-25 14:41:28 -05:00
4fc026a727 Add tests for '#' on collections 2024-02-25 14:38:04 -05:00
d06c63c70c Table field access for .keys, .values, .default, .fallback 2024-02-25 14:35:25 -05:00
5344789d8a More stringent requirements on '&' refs 2024-02-25 14:17:37 -05:00
7c889a4d0a Properly check mutability of lvalues 2024-02-25 13:13:36 -05:00
f7d403c358 WIP on stackrefs 2024-02-25 13:04:35 -05:00
394f720fb0 Make stack references work with local vars 2024-02-25 12:24:38 -05:00
7704a95a0b Implement obj[] 2024-02-25 12:20:25 -05:00
65f684fb6a Rename file extensions 2024-02-24 16:07:52 -05:00
c2228bf986 Rename 'nextlang'->'tomo' 2024-02-24 16:06:49 -05:00
dbad340c29 Bugfix table compilation 2024-02-24 15:39:33 -05:00
71b7392b08 Enum table test 2024-02-24 15:32:55 -05:00
0591d3db3a Rename folder 2024-02-24 15:32:02 -05:00
a1593ad8e4 Make CC an environment variable that's read from 2024-02-24 15:31:26 -05:00
a33de1a36e Fix test 2024-02-24 15:29:35 -05:00
911b39dad1 Update tests 2024-02-24 15:27:27 -05:00
106704b956 Improve enums with metamethods 2024-02-24 15:24:44 -05:00
c747034645 Add struct tests 2024-02-24 14:42:11 -05:00