Commit Graph

72 Commits

Author SHA1 Message Date
2e27b88c1b Improved syntax for optionals 2024-04-30 13:18:47 -04:00
5910998a19 Don't import "main" 2024-04-25 12:51:04 -04:00
061ec4fd8f Support naked 'use' statements 2024-04-24 13:53:37 -04:00
6308325252 Add constructor/casting for ints and nums 2024-04-23 13:12:49 -04:00
005427744d Prevent shadowing variables 2024-04-23 13:04:31 -04:00
7a175d3b45 Catch namespace clobbering of types 2024-04-23 13:03:47 -04:00
fbb25decf0 Support struct literals as constants 2024-04-23 12:50:30 -04:00
3590bf3407 Better imports for types 2024-04-21 14:58:33 -04:00
3b0dce04a0 Add heapify(), heap_push(), and heap_pop() 2024-04-19 13:29:04 -04:00
e98f6854f5 Use leading underscore for file-local variables and functions instead of
"private" keyword
2024-04-17 13:44:01 -04:00
369c601a56 Invert escaping so user symbols get prepended with "$" and builtin
symbols don't
2024-04-16 13:50:07 -04:00
fae2b2caa0 Add array:sample() 2024-04-02 23:28:59 -04:00
95100469b6 Add array:sorted() 2024-04-02 13:13:33 -04:00
c73e96ff91 Add comparison operator <> and array method to sort by a custom
comparison function
2024-04-02 13:08:06 -04:00
04d9adc813 Switch naming convention to use '$' in symbols more 2024-03-29 12:54:31 -04:00
d94053ca77 Add array:reversed() 2024-03-26 14:59:52 -04:00
1c9d47c29f Print ASTs as XML instead of janky custom syntax 2024-03-24 19:04:57 -04:00
5157988efa Implement 'extern' functionality 2024-03-24 15:06:59 -04:00
f21fc700bb Handle type namespaces in other modules 2024-03-22 01:52:00 -04:00
4592e95fa9 Pull namespaces from the type binding 2024-03-21 13:33:10 -04:00
a47bd2d569 Improvements to module imports 2024-03-19 23:29:32 -04:00
80ea0f8507 Corecursive modules 2024-03-19 14:30:40 -04:00
adbb07fdc2 Module imports 2024-03-19 14:22:03 -04:00
7c0a77df33 Handle function type annotations without returns better 2024-03-18 15:27:07 -04:00
6905f759e5 Empty enums use a singleton instead of a constructor 2024-03-17 22:06:55 -04:00
212dfa44ae Fix error message 2024-03-17 21:49:52 -04:00
655b677895 Preface symbols with file prefix 2024-03-17 20:40:40 -04:00
46ee3fc0ef Temporary fix for newlines between statements 2024-03-17 15:59:06 -04:00
a0faef7102 Support nested comprehensions 2024-03-17 15:26:25 -04:00
9932841530 Improve comprehensions for both arrays and tables 2024-03-17 14:46:36 -04:00
fdc3eadba2 Array comprehensions 2024-03-14 02:37:56 -04:00
a33f730617 Rearranging some files 2024-03-10 00:03:21 -05:00
cbdd357b41 Deprecate secret langs (just use one-member structs) 2024-03-09 19:02:13 -05:00
5131fdff62 Improve handling of secret text 2024-03-09 18:47:56 -05:00
2b83ab279d Add langs to the language 2024-03-09 18:22:12 -05:00
b04a1b3090 Implement lambdas and closures 2024-03-09 16:03:38 -05:00
955f047e06 First pass at lambdas/closures 2024-03-09 14:02:19 -05:00
8427037bb9 Refactor table methods to take table structs where possible 2024-03-08 14:33:54 -05:00
55eacb8a04 Array methods 2024-03-08 14:25:17 -05:00
07c2b0ec26 Array methods 2024-03-08 14:23:16 -05:00
425466ce6e Add 'if x := var' conditionals for optional pointers 2024-03-06 13:36:36 -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
103edd6362 Fix cyclic structs/enums 2024-03-05 12:49:13 -05:00
e29aa52460 Struct and enum methods and static members 2024-03-04 13:51:47 -05:00
8fab88c56f Rename Str -> Text 2024-03-03 18:15:45 -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
55d44fe9f2 Tweaks 2024-02-27 12:46:14 -05:00