Commit Graph

122 Commits

Author SHA1 Message Date
03f8742eb7 Fix namespace initializers 2024-03-06 12:41:18 -05:00
211af05381 Fix up some array literal stuff with TCC 2024-03-06 02:27:01 -05:00
4968d45f5a Fix array iteration by inlining 2024-03-06 02:15:23 -05:00
38d5245a9a Fix up some min/max stuff 2024-03-05 14:46:01 -05:00
e29aa52460 Struct and enum methods and static members 2024-03-04 13:51:47 -05:00
0b7ca098ae Fix some bugs relating to NUL termination of strings 2024-03-04 01:34:12 -05:00
dc04286e3a Unicode normalization for equality, hashing, tests, and printing 2024-03-03 19:12:53 -05:00
23478e7036 Rename as_str -> as_text 2024-03-03 18:16:33 -05:00
8fab88c56f Rename Str -> Text 2024-03-03 18:15:45 -05:00
0fe255a7c1 Fix up unicode escapes 2024-03-03 17:49:40 -05:00
9512eb74d2 Bugfix 2024-03-03 17:30:23 -05:00
2eafa7a4da Fix issue with unnamed args getting name flag 2024-03-03 17:21:55 -05:00
32f27b6206 Fix table literals 2024-03-03 16:08:38 -05:00
5486cdcedb Only put 'pragma once' in compiled header file 2024-03-03 15:22:22 -05:00
b8640a2c30 Bugfix for module name parsing 2024-03-03 15:18:15 -05:00
2a7cfd7c36 Fix table literal issue for TCC compatibility 2024-03-03 15:14:59 -05:00
ea7fcd85b4 Make load method be "use$name" 2024-03-03 15:04:36 -05:00
09b1d07d8b Clean up transpiling into separate .c/.h files 2024-03-03 14:45:36 -05:00
fce79cf578 Wrap "&x" in parens to avoid ambiguity 2024-03-03 14:34:13 -05:00
c72d4ec8eb Make constructors actually functions for enums 2024-03-03 14:12:40 -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
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
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
805c26e65a Pass typeinfos 2024-02-27 13:43:38 -05:00
ce0e1c25e2 Stop using namespace types 2024-02-27 13:39:12 -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
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
d06c63c70c Table field access for .keys, .values, .default, .fallback 2024-02-25 14:35:25 -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
c2228bf986 Rename 'nextlang'->'tomo' 2024-02-24 16:06:49 -05:00
dbad340c29 Bugfix table compilation 2024-02-24 15:39:33 -05:00
106704b956 Improve enums with metamethods 2024-02-24 15:24:44 -05:00
c9cd667450 Fix some string literal stuff and table default stuff 2024-02-24 14:36:08 -05:00
50fedc8f44 Fixing up structs 2024-02-24 14:29:40 -05:00
a4c3faa525 Split struct code into a separate file 2024-02-24 13:27:49 -05:00
8bee541c76 Support ++= item 2024-02-23 13:47:06 -05:00
87bc0cfdbd Fix up some ++ stuff for arrays 2024-02-23 13:29:20 -05:00
9f56266ae4 Implement Array__concat and ++= 2024-02-23 13:24:06 -05:00
9aec32149f Code cleanup for KeywordArg 2024-02-23 12:50:01 -05:00