685 Commits

Author SHA1 Message Date
Sasha Koshka
6bcf6004d6 Add compiler test cases for loops 2024-03-20 11:35:14 -04:00
Sasha Koshka
f5b90df837 Fix test cases 2024-03-20 11:19:24 -04:00
Sasha Koshka
b0741477ba Loops now handle multiple break statements correctly 2024-03-20 04:19:47 -04:00
Sasha Koshka
07e859b355 For loop generation should be more correct now 2024-03-20 02:55:31 -04:00
Sasha Koshka
e4c6089b62 Untested for loop generation 2024-03-20 02:52:01 -04:00
Sasha Koshka
789ffa85d2 For loop generation stub 2024-03-20 02:09:26 -04:00
Sasha Koshka
86d4f21036 Analyze for loops 2024-03-16 13:25:53 -04:00
Sasha Koshka
24bfb30a24 Add tests for for loop analysis 2024-03-16 13:23:35 -04:00
Sasha Koshka
83b0dda171 Add breakable interface 2024-03-16 01:43:56 -04:00
Sasha Koshka
f63f437bd9 Add for parsing 2024-03-15 03:03:59 -04:00
Sasha Koshka
43c2e23999 Add for parsing to parser test 2024-03-15 03:03:39 -04:00
Sasha Koshka
36dc8c769c Fix For.String() 2024-03-15 03:02:50 -04:00
Sasha Koshka
9b8941182a Index and Element must be declarations 2024-03-15 02:50:28 -04:00
Sasha Koshka
cdc46f96aa Add range loops to entity 2024-03-14 22:28:50 -04:00
Sasha Koshka
a7df436d77 Add range loops to spec 2024-03-14 22:28:35 -04:00
3dfa029e0d Merge pull request 'entity-consistency' (#57) from entity-consistency into main
Reviewed-on: #57
2024-03-14 07:21:34 +00:00
Sasha Koshka
8982cbf353 Update compiler 2024-03-14 03:20:55 -04:00
Sasha Koshka
39c853df07 Update generator 2024-03-14 03:20:47 -04:00
Sasha Koshka
dce9e1d85d Updated analyzer 2024-03-14 03:18:46 -04:00
Sasha Koshka
d04e9d28ed Updated parser 2024-03-14 03:14:08 -04:00
Sasha Koshka
91b6fff6c7 Add the cool epic to meta 2024-03-14 02:43:59 -04:00
Sasha Koshka
70317bfd5d Only top level entities are in toplevel.go 2024-03-14 02:41:51 -04:00
Sasha Koshka
1402d590e0 Misc entities now have Pos/Position thing going on 2024-03-14 02:40:13 -04:00
Sasha Koshka
34ad85b1f3 Clean up wording in type interface documentation 2024-03-14 02:37:58 -04:00
Sasha Koshka
12fe353916 Add more behaviors to expression interface 2024-03-14 02:37:12 -04:00
Sasha Koshka
ddd908b800 Moved key/hash stuff into its own file 2024-03-14 02:36:39 -04:00
Sasha Koshka
b17b261472 Add more methods to toplevel entities 2024-03-14 02:23:26 -04:00
Sasha Koshka
db4f689f6b Add access control modes to spec 2024-03-14 02:11:26 -04:00
Sasha Koshka
1e6a1db03d Missed a spot 2024-03-14 01:55:18 -04:00
Sasha Koshka
52ec2f5ed1 Renamed restricted access to opaque access 2024-03-14 01:54:22 -04:00
Sasha Koshka
6c21ac48e7 Changed restricted access specified from ~ to # 2024-03-14 01:42:19 -04:00
Sasha Koshka
e702b5fe24 Change interface symbol from ~ to & 2024-03-13 23:05:58 -04:00
Sasha Koshka
410c6c5ec9 Removed "in" from match statement 2024-03-13 22:44:11 -04:00
Sasha Koshka
28ed37f7fa Fix calling methods on pointers to types in other units 2024-03-13 11:51:51 -04:00
Sasha Koshka
9d22cb8546 Add generator tests for referring to methods in other units 2024-03-13 11:15:15 -04:00
Sasha Koshka
ce8c5a0952 Add TestMethodPtr to generator 2024-03-11 11:50:12 -04:00
545a10bddc Re-format roadmap 2024-03-07 23:20:06 +00:00
f17dba23ce Merge pull request 'assign-return-break-to-anything' (#56) from assign-return-break-to-anything into main
Reviewed-on: #56
v0.2.0
2024-03-06 22:42:18 +00:00
Sasha Koshka
7a6f9c367a Add a compiler test for this 2024-03-06 17:41:52 -05:00
Sasha Koshka
ea792a7569 Document new Bool width in spec 2024-03-06 16:51:11 -05:00
Sasha Koshka
32e08871c9 Bool is now an i1 2024-03-06 16:46:27 -05:00
Sasha Koshka
a7bdee3c26 Add tests about this to the generator 2024-03-06 16:44:22 -05:00
Sasha Koshka
52f68d1fe3 Generator understands assigning return/break to things 2024-03-06 16:43:58 -05:00
Sasha Koshka
1382501302 Updated spec 2024-03-06 15:37:30 -05:00
Sasha Koshka
a07fd2939a Break and return can be assigned to anything 2024-03-06 15:34:00 -05:00
Sasha Koshka
2d640b0288 Add test cases for #55 2024-03-06 15:31:47 -05:00
Sasha Koshka
d3b9364544 Rename analyzer's match test file to control flow test 2024-03-06 15:21:33 -05:00
f1fa0da6dd Merge pull request 'implement-union-types' (#54) from implement-union-types into main
Reviewed-on: #54
2024-03-06 20:16:54 +00:00
Sasha Koshka
863abddc4a One last test 2024-03-06 15:16:15 -05:00
Sasha Koshka
50e363b0da Add compiler tests for unions/matches 2024-03-06 15:06:21 -05:00