Commit graph

286 commits

Author SHA1 Message Date
1272b5ec89 Finished class member structure refactor 2023-01-14 14:03:21 +01:00
fb7f2f16fa Interpreter - Fixed class declaration handling 2023-01-14 13:34:18 +01:00
71a58c12a2 Parser - Accomodate AST class structure changes 2023-01-14 13:20:50 +01:00
366ba6e307 Resolver - Refactored class member resolution again 2023-01-14 13:17:25 +01:00
141571569d Dumper - Fixed imports 2023-01-14 11:15:52 +01:00
c3bdc23081 AST - Refactored class member data structures 2023-01-14 11:14:53 +01:00
f2637fb319 Dumper - Handle property getters/setters 2023-01-14 11:00:10 +01:00
ddb2c94ae5 AST - Added property getters/setters 2023-01-14 10:56:10 +01:00
373668fc23 AST - Comments for ClassDecl members 2023-01-14 10:50:30 +01:00
39276f4756 Resolver - Ensure method names are unique 2023-01-13 08:31:08 +01:00
77f14bfa8e Interpreter - Static methods are returned by the getter 2023-01-13 08:21:18 +01:00
75652b95cf Interpreter - Store static methods inside classes 2023-01-13 08:16:26 +01:00
ed704b1a63 Interpreter - Refactored method extraction 2023-01-12 08:54:23 +01:00
d2b66db852 Interpreter - Filter non-static methods during class creation 2023-01-12 08:47:16 +01:00
fb588e07a2 Parser - Fixed borrow error 2023-01-12 08:46:06 +01:00
4255fc30d5 Resolver - Removed unused import 2023-01-12 08:41:35 +01:00
599652e98e Resolver - Refactored to work with the new class structure 2023-01-12 08:41:04 +01:00
0dbc631c96 Parser - Disallow static initializers 2023-01-12 08:40:21 +01:00
b77d69c989 Parser - Static methods 2023-01-12 08:15:36 +01:00
24c39a2c9d Scanner - Static keyword 2023-01-12 08:15:26 +01:00
0a31442d56 Dumper - Support static methods 2023-01-12 08:09:23 +01:00
52c4b6315e AST - Refactored class member representation 2023-01-12 08:06:58 +01:00
6387615f68 Tokens - Added Static 2023-01-12 08:02:01 +01:00
0ebe2e9f22 Interpreter - Class properties 2023-01-12 07:39:12 +01:00
09b4b4e688 Interpreter - Refactored getter/setter support as a trait on an instance ref 2023-01-11 19:44:52 +01:00
8b19f546c8 Parser - Removed handling of 'return' special cases
* This has been implemented in the resolver so it's pretty pointless
    to do it twice
2023-01-11 15:33:41 +01:00
ee53c2fba4 Resolver - Improved handling of 'return' 2023-01-11 15:33:21 +01:00
57a5a62300 Resolver - Check return statements in the resolver 2023-01-11 15:30:24 +01:00
406400bf71 Resolver - Don't reset scope types while parsing function blocks 2023-01-11 15:29:48 +01:00
aa48973e23 Resolver - Support and detection of the initializer scope type 2023-01-11 15:19:21 +01:00
0a581f042d Resolver - Keep track of the container scope's type 2023-01-11 15:15:40 +01:00
47c4136c25 Interpreter - Refactored instance to avoid runtime borrom problems 2023-01-11 08:21:48 +01:00
c4f0f0f721 Interpreter - Fixed special case for init 2023-01-11 08:03:42 +01:00
3af544a78e Interpreter - Initialize support in instances
* Doesn't work at this point
2023-01-11 07:50:02 +01:00
783a2e3dd0 Interpreter - Special case for initializer methods 2023-01-11 07:46:13 +01:00
98eef78583 Clippity clip clippy 2023-01-11 07:21:50 +01:00
ecc8f2ec8b Removed various bits of unused code 2023-01-11 07:20:29 +01:00
16151bd326 Actually made "this" work in the interpreter 2023-01-10 09:03:57 +01:00
3e4aea0d78 Interpreter - Working bound methods 2023-01-09 11:19:42 +01:00
542bc56aad Interpreter - Initial implementation of bound methods 2023-01-09 10:50:24 +01:00
a2986a1342 Resolver - Class definitions create a scope that contains "this" 2023-01-09 10:48:50 +01:00
e46b399399 Interpreter - Handle references to "this" 2023-01-09 08:03:41 +01:00
f9359cfe03 Interpreter - Refactored lookup_var() to use VariableExpr 2023-01-09 08:02:59 +01:00
ea4717c8bd Resolver - Handle the "this" keyword 2023-01-09 07:59:55 +01:00
1f4aecd099 Resolver - Refactored resolve_use() to use VariableExpr 2023-01-09 07:59:04 +01:00
7e7c8ffc37 Parser - Handle the "this" keyword 2023-01-09 07:56:58 +01:00
c9f74cdc55 AST - "this" keyword 2023-01-09 07:53:56 +01:00
dbd0f6d20f Interpreter - Handle AST refactorings 2023-01-09 07:51:40 +01:00
b12c7a05cf Resolver - Handle AST refactorings 2023-01-09 07:49:19 +01:00
0c588942bf Parser - Handle AST refactorings 2023-01-09 07:46:42 +01:00