Commit eeabada
committed
Merge #247: fix: realising of built-in types, hard-coded aliases
887c681 fix: add whitespace after comma in `Either` display (Volodymyr Herashchenko)
0f54d67 feat: add check for redefining built-in types (Volodymyr Herashchenko)
ec45a2d fix: remove hardcoded built-ins (Volodymyr Herashchenko)
Pull request description:
Closes #235 and partially closes #202.
There are 3 small and separate fixes:
1) Remove hard-coded built-in aliases from the parser, so all alias checking is in `types.rs`
2) Adds check for redefining built-in aliases and types in `TypeAlias` parsing function. It uses the same logic as the first fix, so I included it here.
3) Fix small typo within `TypeInner` display function -- there are missing whitespace after comma inside `Either` type. You can see this issue in [this PR](BlockstreamResearch/simplicity-lang-org@ab0365c#diff-45c93d101716efcb5e6e71fbdca58e55488f9b0c15f1ac2f01c9af1b1b39f44eR2936) for `simplicitiy-lang-org`. It's a small enough change that I thought I could include it here.
Would be happy to split this up if needed.
ACKs for top commit:
apoelstra:
ACK 887c681; successfully ran local tests
delta1:
ACK 887c681; tested locally
Tree-SHA512: c30a6be4221727d0518e1d0b9559b83783b1834c9b002cfc51c81414209fac924f4fb9786c1ad4ec3057a2572c42ce9b88ac0b2f238b614beec5be68142c28f13 files changed
+73
-22
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
429 | 429 | | |
430 | 430 | | |
431 | 431 | | |
| 432 | + | |
432 | 433 | | |
433 | 434 | | |
434 | 435 | | |
| |||
551 | 552 | | |
552 | 553 | | |
553 | 554 | | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
554 | 559 | | |
555 | 560 | | |
556 | 561 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
| 29 | + | |
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| |||
1002 | 1002 | | |
1003 | 1003 | | |
1004 | 1004 | | |
1005 | | - | |
1006 | | - | |
1007 | | - | |
1008 | | - | |
1009 | | - | |
1010 | | - | |
1011 | | - | |
1012 | | - | |
1013 | | - | |
1014 | | - | |
1015 | | - | |
1016 | | - | |
1017 | | - | |
1018 | | - | |
1019 | | - | |
1020 | | - | |
1021 | | - | |
1022 | | - | |
| 1005 | + | |
| 1006 | + | |
| 1007 | + | |
| 1008 | + | |
| 1009 | + | |
| 1010 | + | |
| 1011 | + | |
| 1012 | + | |
| 1013 | + | |
| 1014 | + | |
1023 | 1015 | | |
1024 | | - | |
1025 | 1016 | | |
1026 | 1017 | | |
1027 | 1018 | | |
| |||
1461 | 1452 | | |
1462 | 1453 | | |
1463 | 1454 | | |
1464 | | - | |
| 1455 | + | |
| 1456 | + | |
| 1457 | + | |
| 1458 | + | |
| 1459 | + | |
| 1460 | + | |
| 1461 | + | |
| 1462 | + | |
| 1463 | + | |
| 1464 | + | |
| 1465 | + | |
| 1466 | + | |
| 1467 | + | |
| 1468 | + | |
| 1469 | + | |
| 1470 | + | |
| 1471 | + | |
| 1472 | + | |
| 1473 | + | |
1465 | 1474 | | |
1466 | 1475 | | |
1467 | 1476 | | |
| |||
2163 | 2172 | | |
2164 | 2173 | | |
2165 | 2174 | | |
| 2175 | + | |
| 2176 | + | |
| 2177 | + | |
| 2178 | + | |
| 2179 | + | |
| 2180 | + | |
| 2181 | + | |
| 2182 | + | |
| 2183 | + | |
| 2184 | + | |
| 2185 | + | |
| 2186 | + | |
| 2187 | + | |
| 2188 | + | |
| 2189 | + | |
| 2190 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
| 40 | + | |
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| |||
193 | 193 | | |
194 | 194 | | |
195 | 195 | | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
196 | 215 | | |
197 | 216 | | |
198 | 217 | | |
| |||
1094 | 1113 | | |
1095 | 1114 | | |
1096 | 1115 | | |
| 1116 | + | |
| 1117 | + | |
1097 | 1118 | | |
1098 | 1119 | | |
0 commit comments