Commit Graph

61 Commits

Author SHA1 Message Date
cdc54f54cb types: add proper Function support 2025-04-19 14:57:32 +03:00
c77e0703f9 add test for closures 2025-04-19 14:48:13 +03:00
221cd6e149 add test for local x = x 2025-04-19 14:43:46 +03:00
2747749c37 change Location::Field::table to Expression
It doesn’t need to be a location
2025-04-19 14:39:19 +03:00
febe0e9dd8 add ::new_variable 2025-04-19 14:35:13 +03:00
0c01a4a958 use new_constant 2025-04-19 14:33:18 +03:00
1e00544c1a better usability for ast::Constant 2025-04-19 14:32:41 +03:00
2f08fa0dab add a simple test 2025-04-19 14:14:48 +03:00
f6ba112d95 oops, forgot to return the result 2025-04-19 14:14:39 +03:00
d3e0f12f69 fix tests 2025-04-19 14:07:53 +03:00
1e889cc604 eval! 2025-04-19 14:01:15 +03:00
25dc5ab228 eval statements
At this point there isn’t any real difference between expressions and statements
2025-04-19 13:54:51 +03:00
6af1dff560 Eval location 2025-04-19 13:50:16 +03:00
ad2044b81d WIP trait Eval 2025-04-19 13:46:56 +03:00
f3ae2b8461 OpenFunction::call stub 2025-04-19 13:46:42 +03:00
1325b1cf08 split Function and OpenFunction 2025-04-19 13:46:18 +03:00
995122f1e0 make types::Function callable 2025-04-19 13:46:18 +03:00
d9b86f430f Extract scoping 2025-04-19 12:54:15 +03:00
6dbe397ebf extract new_toplevel 2025-04-19 12:47:57 +03:00
5077daf8f3 better name 2025-04-19 12:47:11 +03:00
3b8de2886e lookup table fields 2025-04-19 12:43:47 +03:00
9b0127f961 lookup variables 2025-04-19 12:41:47 +03:00
d1e1d8ee5c build_expression! 2025-04-19 12:37:44 +03:00
03e8673b6f extract build_call 2025-04-19 12:36:29 +03:00
38659d86aa Extract ast::Call 2025-04-19 12:34:38 +03:00
eb51dd2702 calls! 2025-04-19 12:30:41 +03:00
4033495353 that doesn’t have to be a location 2025-04-19 12:25:41 +03:00
b93674fe3f it takes shape... 2025-04-19 12:25:28 +03:00
b0e201fccb private! 2025-04-19 12:15:15 +03:00
819d6ec3fc locals? 2025-04-19 12:13:38 +03:00
b8477148b6 scoping! 2025-04-19 12:05:17 +03:00
6c1e6d6bfa ugh, variance... 2025-04-19 12:03:10 +03:00
c42a7b2251 prepare types for two-pass implementation 2025-04-19 11:36:14 +03:00
4ab81edda1 fixup! Add Function to AST 2025-04-19 11:07:27 +03:00
81a27e2a07 Add Local to AST 2025-04-19 11:04:39 +03:00
528545f71d Add Function to AST 2025-04-19 11:04:16 +03:00
fe0d46ecf3 Store function names 2025-04-19 11:00:07 +03:00
0b5e9a5f44 add Function to Value 2025-04-19 10:42:30 +03:00
fe15752d04 be more specific with strings 2025-04-19 10:42:16 +03:00
703a680ff7 this time clippy may be right 2025-04-11 21:04:24 +03:00
24bc9acb7b set/rawset 2025-04-11 21:03:43 +03:00
c6ad5c92ce test table assignment! 2025-04-11 20:53:53 +03:00
5f6da6ec60 side effects! 2025-04-11 20:48:40 +03:00
380b7b26a3 side effects? 2025-04-11 20:44:52 +03:00
985822b03f add assignments 2025-04-11 20:40:45 +03:00
d913d8b7a9 test expression::call 2025-04-11 20:36:37 +03:00
ec3b41809d privatise 2025-04-11 20:36:28 +03:00
9562da5518 no cows 2025-04-11 20:31:04 +03:00
382cfdd903 add scope ops 2025-04-11 20:29:40 +03:00
4ead8e702e More tests! 2025-04-11 20:02:22 +03:00