Commit Graph

46 Commits

Author SHA1 Message Date
c455e7b67d Rename builtins/ -> stdlib/ 2024-09-13 20:18:08 -04:00
34c562e88e Move cord helper functions into their own file 2024-09-13 14:23:24 -04:00
43f4f3610e For single-member structs/enums, don't print the member name 2024-09-12 04:09:52 -04:00
210179ee67 Optional enums (deprecated custom tag values) 2024-09-11 12:29:48 -04:00
dee3742b48 Optional structs 2024-09-11 12:01:17 -04:00
bac14fa6c7 Fully clean up siphash code and fix some issues 2024-09-05 16:23:05 -04:00
82849ba783 Use Text("...") literal constructor instead of Text$from_str("...")
function call.
2024-09-03 15:00:28 -04:00
b0a8404bd7 Fix enums/structs 2024-09-02 19:18:21 -04:00
61e482f6f3 Initial WIP first past 2024-09-02 18:47:39 -04:00
752ab8212c Split BigIntType out of IntType and switch to using enums for the size
of ints/nums
2024-08-18 11:49:51 -04:00
37669b1734 Bugfix for Int64$hash() being referenced 2024-08-17 15:07:22 -04:00
2c79bf2d71 Remove reference to Num$hash 2024-08-13 04:31:29 -04:00
25519d2434 Fixing up more stuff 2024-08-13 02:28:14 -04:00
99b00530ce Change structs/enums so they allow for field/tag names that are C
keywords
2024-08-03 16:39:04 -04:00
87785555ec Fix for order of operations issues with enum and function typedef code 2024-07-23 19:46:42 -04:00
78960b1461 Randomize hash key on startup and rename to TOMO_HASH_KEY. 2024-07-04 16:46:24 -04:00
1621968fc8 Fix issue with bitfields 2024-06-17 17:31:50 -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
7a53e10826 Fix issue with type namespaces not getting properly prefixed by library
namespace
2024-06-16 15:12:00 -04:00
8c7d530080 Split header compilation into a separate function 2024-06-06 16:28:53 -04:00
7e275af628 Get rid of struct constructor 2024-05-21 20:54:09 -04:00
b1db4fd0f6 Improve codegen for enums and structs (change $tag$Foo$Baz to
Foo$tag$Baz)
2024-05-21 20:14:57 -04:00
760f46e71c Reduce codegen output for enums without data attached to any tags 2024-05-21 13:42:33 -04:00
7aa6b2a496 Make autogenerated equality method more compact 2024-04-23 13:24:01 -04:00
4c5dc9443e Rename SSS_HASH_VECTOR -> TOMO 2024-04-14 21:58:49 -04:00
04d9adc813 Switch naming convention to use '$' in symbols more 2024-03-29 12:54:31 -04:00
d94c1057ac Improve codegen for enums by eliminating unnecessary methods 2024-03-18 14:11:56 -04:00
bff3666d60 Don't print dollar signs in string representations of structs 2024-03-18 13:53:03 -04:00
df2e01c15e Add some better file comments 2024-03-18 12:47:07 -04:00
146d3542d5 Don't bother comparing empty structs 2024-03-17 21:58:31 -04:00
655b677895 Preface symbols with file prefix 2024-03-17 20:40:40 -04:00
a33f730617 Rearranging some files 2024-03-10 00:03:21 -05:00
77c9669d41 Change lang stringification to include type name 2024-03-09 18:32:36 -05:00
8427037bb9 Refactor table methods to take table structs where possible 2024-03-08 14:33:54 -05:00
03f8742eb7 Fix namespace initializers 2024-03-06 12:41:18 -05:00
38d5245a9a Fix up some min/max stuff 2024-03-05 14:46:01 -05:00
558c8588ee Fix default values for structs 2024-03-05 12:55:38 -05:00
e29aa52460 Struct and enum methods and static members 2024-03-04 13:51:47 -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
ea7fcd85b4 Make load method be "use$name" 2024-03-03 15:04:36 -05:00
ec7a9e5f10 Initial pass at namespacing 2024-03-03 13:04:50 -05:00
106704b956 Improve enums with metamethods 2024-02-24 15:24:44 -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