@gram-data/gram-builder
v0.3.11
Published
AST builder for gram data graph format
Downloads
16
Readme
()-[build]->(ast)
Build valid gram
AST.
How to gram-builder
Install:
npm install @gram-data/gram-builder
Build an AST:
import { node, edge } from '@gram-data/gram-builder';
const left = node('a');
const right = node('b');
const ast = edge([left, right], 'right');
Next Steps
- Enrich record properties with js objects using [[gram-value]]
- Serializes to a string using [[gram-stringify]]
- Introspect the AST using [[gram-ast]]