@bablr/cli 0.6.2 → 0.6.4
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/README.md +21 -41
- package/bin/index.js +1 -1
- package/lib/syntax.js +1 -1
- package/package.json +2 -5
package/README.md
CHANGED
|
@@ -38,60 +38,40 @@ Running the above command produces the following output. Note that this is a str
|
|
|
38
38
|
```cstml
|
|
39
39
|
<!0:cstml bablr-language='https://github.com/bablr-lang/language-en-json'>
|
|
40
40
|
<>
|
|
41
|
+
.:
|
|
41
42
|
<Array>
|
|
42
|
-
openToken:
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
</>
|
|
43
|
+
openToken: <*Punctuator '[' balanced=']' />
|
|
44
|
+
<#*Space:Space '\n ' />
|
|
45
|
+
separators[]: []
|
|
46
|
+
elements[]: []
|
|
47
47
|
elements[]:
|
|
48
48
|
<Number span='Number'>
|
|
49
49
|
wholePart:
|
|
50
50
|
<Integer>
|
|
51
|
-
|
|
52
|
-
<*
|
|
53
|
-
'1'
|
|
54
|
-
</>
|
|
51
|
+
signToken: null
|
|
52
|
+
value: <*UnsignedInteger '1' />
|
|
55
53
|
</>
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
</>
|
|
61
|
-
separators[]:
|
|
62
|
-
<~*Punctuator ',' />
|
|
63
|
-
<#*Space:Space>
|
|
64
|
-
'\n '
|
|
54
|
+
fractionalSeparatorToken: null
|
|
55
|
+
fractionalPart: null
|
|
56
|
+
exponentSeparatorToken: null
|
|
57
|
+
exponentPart: null
|
|
65
58
|
</>
|
|
59
|
+
separators[]: <*Punctuator ',' />
|
|
60
|
+
<#*Space:Space '\n ' />
|
|
66
61
|
elements[]:
|
|
67
62
|
<Boolean>
|
|
68
|
-
sigilToken:
|
|
69
|
-
<~*Keyword 'true' />
|
|
70
|
-
</>
|
|
71
|
-
separators[]:
|
|
72
|
-
<~*Punctuator ',' />
|
|
73
|
-
<#*Space:Space>
|
|
74
|
-
'\n '
|
|
63
|
+
sigilToken: <*Keyword 'true' />
|
|
75
64
|
</>
|
|
65
|
+
separators[]: <*Punctuator ',' />
|
|
66
|
+
<#*Space:Space '\n ' />
|
|
76
67
|
elements[]:
|
|
77
68
|
<String>
|
|
78
|
-
openToken:
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
'3'
|
|
83
|
-
</>
|
|
84
|
-
closeToken:
|
|
85
|
-
<~*Punctuator '"' balancer />
|
|
86
|
-
<#*Space:Space>
|
|
87
|
-
'\n'
|
|
88
|
-
</>
|
|
89
|
-
</>
|
|
90
|
-
closeToken:
|
|
91
|
-
<~*Punctuator ']' balancer />
|
|
92
|
-
<#*Space:Space>
|
|
93
|
-
'\n'
|
|
69
|
+
openToken: <*Punctuator '"' balanced='"' balancedSpan='String' />
|
|
70
|
+
content: <*StringContent '3' />
|
|
71
|
+
closeToken: <*Punctuator '"' balancer />
|
|
72
|
+
<#*Space:Space '\n' />
|
|
94
73
|
</>
|
|
74
|
+
closeToken: <*Punctuator ']' balancer />
|
|
95
75
|
</>
|
|
96
76
|
</>
|
|
97
77
|
```
|
package/bin/index.js
CHANGED
|
@@ -9,7 +9,7 @@ import { debugEnhancers } from '@bablr/helpers/enhancers';
|
|
|
9
9
|
import colorSupport from 'color-support';
|
|
10
10
|
import { evaluateIO } from '@bablr/io-vm-node';
|
|
11
11
|
import { createPrintCSTMLStrategy } from '../lib/syntax.js';
|
|
12
|
-
import { buildFullyQualifiedSpamMatcher } from '@bablr/
|
|
12
|
+
import { buildFullyQualifiedSpamMatcher } from '@bablr/helpers/builders';
|
|
13
13
|
|
|
14
14
|
program
|
|
15
15
|
.name('bablr')
|
package/lib/syntax.js
CHANGED
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
buildAnsiPushEffect,
|
|
16
16
|
buildAnsiPopEffect,
|
|
17
17
|
} from '@bablr/agast-helpers/builders';
|
|
18
|
-
import { buildFullyQualifiedSpamMatcher } from '@bablr/
|
|
18
|
+
import { buildFullyQualifiedSpamMatcher } from '@bablr/helpers/builders';
|
|
19
19
|
import { OpenNodeTag, CloseNodeTag, ReferenceTag, LiteralTag } from '@bablr/agast-helpers/symbols';
|
|
20
20
|
|
|
21
21
|
function* __higlightStrategy(tokens, options) {
|
package/package.json
CHANGED
|
@@ -1,13 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bablr/cli",
|
|
3
3
|
"description": "CLI for running BABLR parsers",
|
|
4
|
-
"version": "0.6.
|
|
4
|
+
"version": "0.6.4",
|
|
5
5
|
"author": "Conrad Buck<conartist6@gmail.com>",
|
|
6
6
|
"type": "module",
|
|
7
|
-
"files": [
|
|
8
|
-
"bin",
|
|
9
|
-
"lib"
|
|
10
|
-
],
|
|
7
|
+
"files": ["bin", "lib"],
|
|
11
8
|
"bin": {
|
|
12
9
|
"bablr": "./bin/index.js"
|
|
13
10
|
},
|