basedpl 0.1.61 → 0.1.63
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/basedpl_wasm_bg.wasm +0 -0
- package/bpl.tmLanguage.json +11 -10
- package/hpl.tmLanguage.json +61 -0
- package/package.json +1 -1
package/basedpl_wasm_bg.wasm
CHANGED
|
Binary file
|
package/bpl.tmLanguage.json
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bpl",
|
|
3
|
+
"displayName": "BPL",
|
|
3
4
|
"scopeName": "source.bpl",
|
|
4
5
|
"fileTypes": [
|
|
5
6
|
"bpl"
|
|
6
7
|
],
|
|
7
8
|
"patterns": [
|
|
8
9
|
{
|
|
9
|
-
"begin": "[
|
|
10
|
+
"begin": "[⍝]",
|
|
10
11
|
"beginCaptures": {
|
|
11
12
|
"0": {
|
|
12
13
|
"name": "comment.line.bpl"
|
|
@@ -44,19 +45,19 @@
|
|
|
44
45
|
"name": "string.quoted.single.bpl"
|
|
45
46
|
},
|
|
46
47
|
{
|
|
47
|
-
"match": "(?:_\\d+|_\\S|_|[^\\s\\p{Cc}0-9
|
|
48
|
+
"match": "(?:_\\d+|_\\S|_|[^\\s\\p{Cc}0-9←⎕•⍺⍵⍶⍹∇⍢⍝⋄\\?¯∞⍬\\+\\-×÷⌈⌊\\|\\*⍟○π√!∧∨⊼⊽\\~=≠<≤>≥⍳↦:⍴≢≡,⍪⊂⊃⊆∊∪∩⍋⍒↑↓⌽⊖⍉⊤⊥⍎⍕⌷⌹\\#↕⍭⨸⌻⍸⍷⊢⊣¿¨ᵇ⍨↣⍤∘⍠⍥↢\\.⊗⌸⍣⇄⊘@∂⍚⌺/⌿\\\\⍀⁰¹²³⁴⁵⁶⁷⁸⁹⁻ᵀᵘₓ₀₁₂₃₄₅₆₇₈₉₋\\(\\)\\[\\]\\{\\}'\";\\$_ₑⱼᵣ])+",
|
|
48
49
|
"name": "variable.other.bpl"
|
|
49
50
|
},
|
|
50
51
|
{
|
|
51
|
-
"match": "[
|
|
52
|
+
"match": "[•][A-Za-z_∆⍙][A-Za-z0-9_∆⍙]*",
|
|
52
53
|
"name": "support.function.system.bpl"
|
|
53
54
|
},
|
|
54
55
|
{
|
|
55
|
-
"match": "[
|
|
56
|
+
"match": "[¯]?[∞]|[¯]?(\\d+([.]\\d+)?|[.]\\d+)([eEₑ][¯]?\\d+)?([jJⱼ][¯]?(\\d+([.]\\d+)?|[.]\\d+)([eEₑ][¯]?\\d+)?|ₓ|[rᵣ][¯]?\\d+)?|[ₑⱼᵣ]",
|
|
56
57
|
"name": "constant.numeric.bpl"
|
|
57
58
|
},
|
|
58
59
|
{
|
|
59
|
-
"match": "[
|
|
60
|
+
"match": "[⍬]ₓ?",
|
|
60
61
|
"name": "constant.numeric.bpl"
|
|
61
62
|
},
|
|
62
63
|
{
|
|
@@ -85,23 +86,23 @@
|
|
|
85
86
|
}
|
|
86
87
|
},
|
|
87
88
|
{
|
|
88
|
-
"match": "[
|
|
89
|
+
"match": "[\\+\\-×÷⌈⌊\\|\\*⍟○π√!∧∨⊼⊽\\~=≠<≤>≥⍳↦:⍴≢≡,⍪⊂⊃⊆∊∪∩⍋⍒↑↓⌽⊖⍉⊤⊥⍎⍕⌷⌹\\#↕⍭⨸⌻⍸⍷⊢⊣¿]",
|
|
89
90
|
"name": "support.function.bpl"
|
|
90
91
|
},
|
|
91
92
|
{
|
|
92
|
-
"match": "[
|
|
93
|
+
"match": "[¨ᵇ⍨⊗⌸⇄∂/⌿\\\\⍀⁰¹²³⁴⁵⁶⁷⁸⁹⁻ᵀᵘₓ]",
|
|
93
94
|
"name": "keyword.operator.monadic.bpl"
|
|
94
95
|
},
|
|
95
96
|
{
|
|
96
|
-
"match": "[
|
|
97
|
+
"match": "[↣⍤∘⍠⍥↢\\.⍣⊘@⍚⌺]",
|
|
97
98
|
"name": "keyword.operator.dyadic.bpl"
|
|
98
99
|
},
|
|
99
100
|
{
|
|
100
|
-
"match": "[
|
|
101
|
+
"match": "[⍺⍵⍶⍹∇⍢]",
|
|
101
102
|
"name": "variable.parameter.bpl"
|
|
102
103
|
},
|
|
103
104
|
{
|
|
104
|
-
"match": "[
|
|
105
|
+
"match": "[←⎕⋄\\?₀₁₂₃₄₅₆₇₈₉₋]",
|
|
105
106
|
"name": "keyword.control.bpl"
|
|
106
107
|
}
|
|
107
108
|
]
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "hpl",
|
|
3
|
+
"displayName": "BPL (Hanzi)",
|
|
4
|
+
"scopeName": "source.hpl",
|
|
5
|
+
"fileTypes": [
|
|
6
|
+
"hpl"
|
|
7
|
+
],
|
|
8
|
+
"patterns": [
|
|
9
|
+
{
|
|
10
|
+
"begin": "[注]",
|
|
11
|
+
"beginCaptures": {
|
|
12
|
+
"0": {
|
|
13
|
+
"name": "comment.line.bpl"
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
"end": "$",
|
|
17
|
+
"contentName": "comment.line.bpl",
|
|
18
|
+
"patterns": [],
|
|
19
|
+
"applyEndPatternLast": true
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"match": "(?:_\\d+|_\\S|_|[^\\s\\p{Cc}0-9←是⎕出入•系⍺甲⍵乙⍶丙⍹丁∇递遞⍢循⍝注⋄句\\?若¯负負∞永⍬空\\+加\\-减減×乘号號÷除⌈上⌊下\\|绝余絕餘\\*幂冪⍟对對○圆圓π周√根!阶拣階揀∧极且極∨析或⊼方否⊽双莫雙\\~非无無=等≠别初別<小≤限退>大≥达进達進⍳位↦至:键卸鍵⍴形≢数异數異≡同深,连連⍪接矩⊂包⊃选合選⊆巢段∊属展屬∪并独併獨∩交重⍋升⍒降↑取↓去拆⌽转轉⊖纵縱⍉翻⊤编編⊥译譯⍎行⍕文⌷索⌹解逆\\#复複↕窗⍭素⨸因⌻零值⍸处间處間⍷寻群尋⊢右⊣左¿掷抽擲¨遍ᵇ按⍨己换換↣先⍤秩∘承⍠轴軸⍥经經↢后後\\.内內⊗表⌸组組⍣次止⇄优優⊘兼@于於∂导梯導⍚择擇⌺邻鄰/总總⌿汇匯\\\\累⍀续續⁰¹²³⁴⁵⁶⁷⁸⁹⁻ᵀᵘₓ₀₁₂₃₄₅₆₇₈₉₋\\(\\)\\[\\]\\{\\}'\";\\$_ₑⱼᵣ])+",
|
|
23
|
+
"name": "variable.other.bpl"
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"match": "[•系][A-Za-z_∆⍙][A-Za-z0-9_∆⍙]*",
|
|
27
|
+
"name": "support.function.system.bpl"
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"match": "[¯负負]?[∞永]|[¯负負]?(\\d+([.内內]\\d+)?|[.内內]\\d+)([eEₑ][¯负負]?\\d+)?([jJⱼ][¯负負]?(\\d+([.内內]\\d+)?|[.内內]\\d+)([eEₑ][¯负負]?\\d+)?|ₓ|[rᵣ][¯负負]?\\d+)?|[ₑⱼᵣ]",
|
|
31
|
+
"name": "constant.numeric.bpl"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"match": "[⍬空]ₓ?",
|
|
35
|
+
"name": "constant.numeric.bpl"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"match": "[加减減乘号號除上下绝余絕餘幂冪对對圆圓周根阶拣階揀极且極析或方否双莫雙非无無等别初別小限退大达进達進位至键卸鍵形数异數異同深连連接矩包选合選巢段属展屬并独併獨交重升降取去拆转轉纵縱翻编編译譯行文索解逆复複窗素因零值处间處間寻群尋右左掷抽擲]",
|
|
39
|
+
"name": "support.function.bpl"
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"match": "[遍按己换換表组組优優导梯導总總汇匯累续續]",
|
|
43
|
+
"name": "keyword.operator.monadic.bpl"
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"match": "[先秩承轴軸经經后後内內次止兼于於择擇邻鄰]",
|
|
47
|
+
"name": "keyword.operator.dyadic.bpl"
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"match": "[甲乙丙丁递遞循]",
|
|
51
|
+
"name": "variable.parameter.bpl"
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"match": "[是出入句若]",
|
|
55
|
+
"name": "keyword.control.bpl"
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"include": "source.bpl"
|
|
59
|
+
}
|
|
60
|
+
]
|
|
61
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "basedpl",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.63",
|
|
4
4
|
"description": "BasedPL, the Based-array Programming Language, is an APL-derived array language, borrowing ideas from J and BQN, with an emphasis on simple, consistent notation.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|