@mintplayer/polyglot-target-csharp 0.1.0 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/polyglot-plugin.json +35 -12
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mintplayer/polyglot-target-csharp",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "MintPlayer Polyglot C# / .NET target — a pure-JSON language plugin (spec + emission rules + capabilities + std bindings) for the polyglot transpiler.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"polyglot",
|
package/polyglot-plugin.json
CHANGED
|
@@ -176,8 +176,8 @@
|
|
|
176
176
|
"with": "@"
|
|
177
177
|
},
|
|
178
178
|
"reserved": [
|
|
179
|
-
"
|
|
180
|
-
"
|
|
179
|
+
"PolyglotProgram",
|
|
180
|
+
"PolyglotExtensions",
|
|
181
181
|
"Main",
|
|
182
182
|
"lhs",
|
|
183
183
|
"__opt*",
|
|
@@ -279,7 +279,7 @@
|
|
|
279
279
|
},
|
|
280
280
|
{
|
|
281
281
|
"tmpl": [
|
|
282
|
-
"
|
|
282
|
+
"PolyglotProgram.",
|
|
283
283
|
{
|
|
284
284
|
"fn": "ident",
|
|
285
285
|
"args": [
|
|
@@ -572,13 +572,36 @@
|
|
|
572
572
|
]
|
|
573
573
|
},
|
|
574
574
|
"hole": {
|
|
575
|
-
"
|
|
576
|
-
"
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
575
|
+
"case": {
|
|
576
|
+
"when": [
|
|
577
|
+
[
|
|
578
|
+
{
|
|
579
|
+
"eq": [
|
|
580
|
+
"item.typeIsBool",
|
|
581
|
+
"true"
|
|
582
|
+
]
|
|
583
|
+
},
|
|
584
|
+
{
|
|
585
|
+
"tmpl": [
|
|
586
|
+
"{(",
|
|
587
|
+
{
|
|
588
|
+
"emit": "item"
|
|
589
|
+
},
|
|
590
|
+
" ? \"true\" : \"false\")}"
|
|
591
|
+
]
|
|
592
|
+
}
|
|
593
|
+
]
|
|
594
|
+
],
|
|
595
|
+
"else": {
|
|
596
|
+
"tmpl": [
|
|
597
|
+
"{",
|
|
598
|
+
{
|
|
599
|
+
"emit": "item"
|
|
600
|
+
},
|
|
601
|
+
"}"
|
|
602
|
+
]
|
|
603
|
+
}
|
|
604
|
+
}
|
|
582
605
|
}
|
|
583
606
|
}
|
|
584
607
|
},
|
|
@@ -1747,7 +1770,7 @@
|
|
|
1747
1770
|
},
|
|
1748
1771
|
{
|
|
1749
1772
|
"block": {
|
|
1750
|
-
"head": "static class
|
|
1773
|
+
"head": "static class PolyglotExtensions",
|
|
1751
1774
|
"body": [
|
|
1752
1775
|
{
|
|
1753
1776
|
"mapMembers": "module.extensions",
|
|
@@ -1817,7 +1840,7 @@
|
|
|
1817
1840
|
},
|
|
1818
1841
|
{
|
|
1819
1842
|
"block": {
|
|
1820
|
-
"head": "static class
|
|
1843
|
+
"head": "static class PolyglotProgram",
|
|
1821
1844
|
"body": [
|
|
1822
1845
|
{
|
|
1823
1846
|
"mapDecl": "module.globals",
|