@mintplayer/polyglot-target-csharp 0.2.0 → 0.2.2
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 +14 -25
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mintplayer/polyglot-target-csharp",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.2",
|
|
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
|
@@ -47,6 +47,10 @@
|
|
|
47
47
|
"mutable": "var $x",
|
|
48
48
|
"const": "var $x"
|
|
49
49
|
},
|
|
50
|
+
"localDeclTyped": {
|
|
51
|
+
"mutable": "$T $x",
|
|
52
|
+
"const": "$T $x"
|
|
53
|
+
},
|
|
50
54
|
"yield": {
|
|
51
55
|
"value": "yield return $x;",
|
|
52
56
|
"empty": "yield break;"
|
|
@@ -1736,6 +1740,12 @@
|
|
|
1736
1740
|
},
|
|
1737
1741
|
"Program": {
|
|
1738
1742
|
"seq": [
|
|
1743
|
+
{
|
|
1744
|
+
"line": "#nullable enable"
|
|
1745
|
+
},
|
|
1746
|
+
{
|
|
1747
|
+
"line": ""
|
|
1748
|
+
},
|
|
1739
1749
|
{
|
|
1740
1750
|
"mapMembers": "module.enums",
|
|
1741
1751
|
"rule": "EnumDecl"
|
|
@@ -2635,19 +2645,9 @@
|
|
|
2635
2645
|
],
|
|
2636
2646
|
[
|
|
2637
2647
|
{
|
|
2638
|
-
"
|
|
2639
|
-
|
|
2640
|
-
|
|
2641
|
-
"type.nullable",
|
|
2642
|
-
"true"
|
|
2643
|
-
]
|
|
2644
|
-
},
|
|
2645
|
-
{
|
|
2646
|
-
"eq": [
|
|
2647
|
-
"type.isValueType",
|
|
2648
|
-
"true"
|
|
2649
|
-
]
|
|
2650
|
-
}
|
|
2648
|
+
"eq": [
|
|
2649
|
+
"type.nullable",
|
|
2650
|
+
"true"
|
|
2651
2651
|
]
|
|
2652
2652
|
},
|
|
2653
2653
|
{
|
|
@@ -2659,17 +2659,6 @@
|
|
|
2659
2659
|
]
|
|
2660
2660
|
}
|
|
2661
2661
|
],
|
|
2662
|
-
[
|
|
2663
|
-
{
|
|
2664
|
-
"eq": [
|
|
2665
|
-
"type.nullable",
|
|
2666
|
-
"true"
|
|
2667
|
-
]
|
|
2668
|
-
},
|
|
2669
|
-
{
|
|
2670
|
-
"type": "type.base"
|
|
2671
|
-
}
|
|
2672
|
-
],
|
|
2673
2662
|
[
|
|
2674
2663
|
{
|
|
2675
2664
|
"has": "type.scalar"
|
|
@@ -2750,7 +2739,7 @@
|
|
|
2750
2739
|
"List.removeAt": "$this.RemoveAt($0)"
|
|
2751
2740
|
},
|
|
2752
2741
|
"std.io": {
|
|
2753
|
-
"print": "global::System.Console.WriteLine(x is bool __pb ? (__pb ? \"true\" : \"false\") : (object)x)",
|
|
2742
|
+
"print": "global::System.Console.WriteLine(x is bool __pb ? (__pb ? \"true\" : \"false\") : (object?)x)",
|
|
2754
2743
|
"readText": "global::System.IO.File.ReadAllText(path)",
|
|
2755
2744
|
"writeText": "global::System.IO.File.WriteAllText(path, content)",
|
|
2756
2745
|
"appendText": "global::System.IO.File.AppendAllText(path, content)",
|