UNPKG
bitmark-grammar
Version:
latest (1.1.5)
1.1.5
1.1.4
1.1.3
1.1.2
1.1.1
1.0.101
1.0.100
1.0.99
1.0.98
1.0.97
1.0.96
1.0.95
1.0.94
1.0.93
1.0.92
1.0.91
1.0.90
1.0.89
1.0.88
1.0.87
1.0.86
1.0.85
1.0.84
1.0.83
1.0.82
1.0.81
1.0.80
1.0.79
1.0.78
1.0.77
1.0.76
1.0.75
1.0.74
1.0.73
1.0.72
1.0.71
1.0.70
1.0.69
1.0.68
1.0.67
1.0.66
1.0.65
1.0.64
1.0.63
1.0.62
1.0.60
1.0.58
1.0.57
1.0.56
1.0.55
1.0.54
1.0.53
1.0.52
1.0.51
1.0.50
1.0.49
1.0.48
1.0.47
1.0.46
1.0.45
1.0.43
1.0.42
1.0.41
1.0.40
1.0.39
1.0.35
1.0.34
A bitmark parser
github.com/bitmark-standard/bitmark-grammar
bitmark-standard/bitmark-grammar
bitmark-grammar
/
sample-call-parser.js
15 lines
(11 loc)
•
242 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
const
fs =
require
(
'fs'
);
const
bg =
require
(
'./bitmark-grammar'
);
try
{
let
path =
'/tmp/bug.bit'
;
let
bittext = fs.
readFileSync
(path,
'utf8'
);
let
json = bg.
parse
(bittext);
console
.
log
(json); }
catch
(e) {
console
.
error
(e); }