@mintplayer/polyglot-target-php 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 +30 -7
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mintplayer/polyglot-target-php",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "MintPlayer Polyglot PHP 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
|
@@ -608,13 +608,36 @@
|
|
|
608
608
|
]
|
|
609
609
|
},
|
|
610
610
|
"hole": {
|
|
611
|
-
"
|
|
612
|
-
"
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
611
|
+
"case": {
|
|
612
|
+
"when": [
|
|
613
|
+
[
|
|
614
|
+
{
|
|
615
|
+
"eq": [
|
|
616
|
+
"item.typeIsBool",
|
|
617
|
+
"true"
|
|
618
|
+
]
|
|
619
|
+
},
|
|
620
|
+
{
|
|
621
|
+
"tmpl": [
|
|
622
|
+
" . ((",
|
|
623
|
+
{
|
|
624
|
+
"emit": "item"
|
|
625
|
+
},
|
|
626
|
+
") ? \"true\" : \"false\") . "
|
|
627
|
+
]
|
|
628
|
+
}
|
|
629
|
+
]
|
|
630
|
+
],
|
|
631
|
+
"else": {
|
|
632
|
+
"tmpl": [
|
|
633
|
+
" . (",
|
|
634
|
+
{
|
|
635
|
+
"emit": "item"
|
|
636
|
+
},
|
|
637
|
+
") . "
|
|
638
|
+
]
|
|
639
|
+
}
|
|
640
|
+
}
|
|
618
641
|
}
|
|
619
642
|
}
|
|
620
643
|
},
|