Commit Graph

780 Commits

Author SHA1 Message Date
98d8edc319 Generate phi node for default case in match switch 2024-03-06 13:09:20 -05:00
ff749a03dd Generate assignment to unions 2024-03-06 13:09:03 -05:00
daea6cb22a Generate match statements 2024-03-06 00:42:40 -05:00
54f69ca786 Add match stub 2024-03-05 03:32:31 -05:00
779aaf3cea Generate union types 2024-03-05 03:15:44 -05:00
8ec7929c1e New test TestMatchErrNotUnion 2024-03-04 14:22:39 -05:00
fd8a15db66 Analyze match expressions 2024-03-04 14:19:33 -05:00
b1cef5d95f Add more semantic fields to Match and Case 2024-03-04 14:09:48 -05:00
2a6778837f Improved match tests 2024-03-04 14:09:19 -05:00
8fa9a579fd entity.Match.String() prints "in" instead of "on" 2024-03-04 13:36:07 -05:00
ce79e16de7 Add some match statement tests 2024-03-04 13:34:22 -05:00
cd91f9dc20 Add more tests for the union type 2024-03-02 12:36:22 -05:00
24268e498e Add some tests for the union type 2024-03-02 12:26:16 -05:00
a6dabc27f9 The assemble map pattern doesnt work for unions
That entire file needs to be completely rewritten is stg
2024-03-02 12:21:28 -05:00
459020126d Add assignment rules for unions 2024-03-02 12:12:43 -05:00
3a1d9632dc Analyzer checks uniqueness of types in union by comparing hashes 2024-03-02 12:09:49 -05:00
8beb785009 And so does analyzer 2024-03-02 01:34:16 -05:00
66633be90c Parser understands these new developments 2024-03-02 01:30:45 -05:00
bc88782938 Add Position() method to type 2024-03-02 01:26:29 -05:00
e30f2a74da Augh 2024-03-01 21:45:14 -05:00
0e2259bb45 Add match test to parser, fixed parsing and stringing of match 2024-03-01 21:44:20 -05:00
f94c562896 Added match statements to the parser
Added match statements to the parser
2024-03-01 21:36:40 -05:00
fb7558576e Add match expressions to entity 2024-03-01 21:22:32 -05:00
8d611b6fa6 Add match statement to expresison parsing decision tree 2024-03-01 21:10:03 -05:00
c17a381ba5 Add match statements to the spec 2024-03-01 21:03:49 -05:00
c45d0215ba Add union types to parser 2024-03-01 12:35:11 -05:00
0135972e14 Add parser test for union type 2024-03-01 12:34:29 -05:00
24fa83b004 Update expression parsing decision tree in parser/fspl/README.md 2024-03-01 12:11:09 -05:00
b40953a0ec Add TypeUnion to entity 2024-03-01 03:00:17 -05:00
cde0eec9aa Add union type syntax to spec 2024-03-01 02:54:26 -05:00
096da5bdfd Types can now produce hashes of themselves 2024-03-01 02:53:29 -05:00
fe14072392 Add a hashing system to Entity 2024-03-01 02:53:10 -05:00
0947a8de44 Add design for union type 2024-03-01 02:10:21 -05:00
278a243804 Add pkg.go.dev badge 2024-03-01 00:24:04 -05:00
005b2fcd56 Inline string literal since #46 has been remedied 2024-03-01 00:17:39 -05:00
5e93a7afd1 TestLiteralReference is now an error test 2024-03-01 00:13:32 -05:00
c22ac87cd0 Fixed analyzer.isLocationExpression 2024-03-01 00:12:21 -05:00
8ae6ea3626 Add test case for #46 2024-03-01 00:04:15 -05:00
8e3b21f807 Merge pull request 'generator-multi-unit-tests' (#51) from generator-multi-unit-tests into main
Reviewed-on: #51
2024-03-01 05:00:07 +00:00
2ae4111f64 Add some multiunit tests from the analyzer to the generator 2024-02-29 23:59:15 -05:00
b1fc69dacd Change name of generator multiunit test to match analyzer 2024-02-29 23:52:09 -05:00
ee02e71b1d Putting complete covering of bit casts on hold for now 2024-02-28 20:08:54 -05:00
80e310010e Covered more cases with bitcast 2024-02-28 20:08:43 -05:00
fad3597d7a Add more test cases for bitcasting pointers 2024-02-28 19:49:35 -05:00
4cfa431919 Merge branch 'main' into generator-multi-unit-tests 2024-02-28 19:42:11 -05:00
6b4ea0e255 Merge pull request 'analyzer-fix-bitcast' (#50) from analyzer-fix-bitcast into main
Reviewed-on: #50
2024-02-29 00:34:41 +00:00
e2d944d534 The buge (#47) is vanquished!!!! 2024-02-28 19:30:33 -05:00
81c4f1e46b Expressions now have HasExplicitType() 2024-02-28 18:31:46 -05:00
60ef92bd4c Add test case to analyzer for #47 2024-02-28 18:03:15 -05:00
36456ad1bc Completed out TestUnitWriterInterface 2024-02-28 17:43:17 -05:00