Commit Graph

45 Commits

Author SHA1 Message Date
4d3ea3f73e Check for newline between statements in blocks 2024-07-04 18:45:04 -04:00
6a105fbd80 Add 'defer' 2024-07-04 18:00:01 -04:00
9d9fe12987 Add !! statement for printing text 2024-07-04 16:23:05 -04:00
38622ccbec Change metamethod names 2024-07-04 13:40:09 -04:00
f391c929e5 Add math metamethods (__add, __sub, etc.) 2024-07-01 11:12:00 -04:00
dab2c399f1 Split import/use into separate concepts 2024-06-13 13:17:51 -04:00
02fe49a764 Deprecate interfaces (RIP) 2024-05-12 20:13:19 -04:00
3481042259 Simplify interfaces by requiring all functions are pointer methods 2024-05-12 15:56:24 -04:00
d143c72b22 WIP, but functional interfaces 2024-05-12 13:50:06 -04:00
c2daf6a928 Clean up 'when' syntax 2024-05-01 13:53:51 -04:00
2e27b88c1b Improved syntax for optionals 2024-04-30 13:18:47 -04:00
fbb25decf0 Support struct literals as constants 2024-04-23 12:50:30 -04:00
3f10460a6e Support loading imports as top-level statements 2024-04-21 11:22:11 -04:00
ccb9e36704 Fix empty string check 2024-04-10 11:54:09 -04:00
4f514378ac Fix corecursive functions and global variables 2024-04-10 11:49:43 -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
135e23094c Improve codegen for table/array iteration by inlining the iteration
macros
2024-03-26 14:02:48 -04:00
59b62035c1 Fix xml for Stop 2024-03-26 13:46:59 -04:00
047eb93fa8 More XML fixes 2024-03-26 12:45:34 -04:00
a30f588378 Fix XML output 2024-03-26 12:44:53 -04:00
1c9d47c29f Print ASTs as XML instead of janky custom syntax 2024-03-24 19:04:57 -04:00
a47bd2d569 Improvements to module imports 2024-03-19 23:29:32 -04:00
9932841530 Improve comprehensions for both arrays and tables 2024-03-17 14:46:36 -04:00
ecf425fb9a Rearrange expression/statement compilation code 2024-03-14 13:28:30 -04:00
cbdd357b41 Deprecate secret langs (just use one-member structs) 2024-03-09 19:02:13 -05:00
2b83ab279d Add langs to the language 2024-03-09 18:22:12 -05:00
8fab88c56f Rename Str -> Text 2024-03-03 18:15:45 -05:00
4dc70c84d4 First working method calls 2024-02-29 13:49:24 -05:00
741617a17e Add for-else block 2024-02-25 16:02:36 -05:00
9aec32149f Code cleanup for KeywordArg 2024-02-23 12:50:01 -05:00
9e2645ade7 Fix up keyword args and default args 2024-02-22 22:15:09 -05:00
2ecd8e11fd Implement 'when' statement for matching on enums 2024-02-22 12:45:12 -05:00
eabff011ea Add in '#' operator for length 2024-02-18 01:27:25 -05:00
c678acfb19 Quote strings in AST debug strs 2024-02-17 23:22:23 -05:00
d46925dbfa Cleanup of builtins 2024-02-17 19:32:30 -05:00
de3eeacfa0 Major cleanup 2024-02-17 16:56:19 -05:00
2c5401aaf7 Deprecate Char type 2024-02-12 00:41:49 -05:00
ddd9f6e5d5 Fix operator precedence and boolification 2024-02-11 23:09:00 -05:00
37a0493b59 String literals as cords 2024-02-11 15:31:30 -05:00
4e545c6798 Better string parsing. 2024-02-10 15:23:06 -05:00
930c09f46d More features and progress 2024-02-08 00:52:18 -05:00
ee0f45e295 Rename type AST nodes 2024-02-05 13:22:30 -05:00
b08a0d3e2b Updates and functionality 2024-02-04 18:04:41 -05:00
98f0c51119 Initial commit 2024-02-04 15:23:59 -05:00