0.3.11 • Published 4 years ago
@gram-data/gram-parse v0.3.11
From text literal (a)-->(b)
to a gram AST.
How to gram-parse
Install:
npm install @gram-data/gram-parse
Parse text into an AST:
import { toAST } from '@gram-data/gram-parse';
const src = '(a)-->(b)';
const parsed = toAST(src);
Inspect AST using unist-util-inspect:
const inspect = require('unist-util-inspect');
console.log(inspect(parsed));
Next Steps
- Transform to js objects using [gram-value]
- Write back to a string using [gram-stringify]
- Introspect the AST using [gram-ast]
0.3.11
4 years ago
0.3.10
4 years ago
0.4.0-alpha.8
4 years ago
0.4.0-alpha.6
4 years ago
0.4.0-alpha.5
4 years ago
0.4.0-alpha.4
4 years ago
0.4.0-alpha.3
4 years ago
0.4.0-alpha.2
4 years ago
0.4.0-alpha.1
4 years ago
0.3.9
4 years ago
0.3.9-alpha.2
4 years ago
0.3.6
4 years ago
0.3.8
4 years ago
0.3.7
4 years ago
0.3.5
4 years ago
0.3.4
4 years ago
0.3.2
4 years ago
0.3.1
4 years ago
0.3.3
4 years ago
0.3.0
4 years ago
0.2.18
4 years ago
0.2.15
4 years ago
0.2.14
4 years ago
0.2.13
4 years ago
0.2.17
4 years ago
0.2.12
4 years ago
0.2.13-alpha.1
4 years ago
0.2.11
4 years ago
0.2.10
4 years ago
0.2.9
4 years ago
0.2.8
4 years ago
0.2.7
4 years ago
0.2.6
4 years ago
0.2.5
4 years ago
0.2.3
4 years ago
2.0.1
4 years ago
0.2.4
4 years ago
0.1.10
4 years ago
0.1.9
4 years ago
0.1.8
4 years ago
0.1.7
4 years ago
0.1.4
4 years ago
0.1.3
4 years ago