@gram-data/gram-builder
TypeScript icon, indicating that this package has built-in type declarations

0.3.11 • Public • Published

()-[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]]

Readme

Keywords

Package Sidebar

Install

npm i @gram-data/gram-builder

Weekly Downloads

79

Version

0.3.11

License

MIT

Unpacked Size

177 kB

Total Files

16

Last publish

Collaborators

  • akollegger