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

0.3.11 • Public • Published

Evaluate data graph AST values, producing Javascript primitive or object values.

How to gram-value

Install:

npm install @gram-data/gram-value

Build an AST using [[gram-builder]]:

import { node, edge } from '@gram-data/gram-builder';

const left = node('a');
const right = node('b');
const ast = edge([left, right], 'right');

Next Steps

  • Write back to a string using [[gram-stringify]]
  • Introspect the AST using [[gram-ast]]
  • Write your own unified plugin for processing the AST

Readme

Keywords

Package Sidebar

Install

npm i @gram-data/gram-value

Weekly Downloads

4

Version

0.3.11

License

MIT

Unpacked Size

172 kB

Total Files

20

Last publish

Collaborators

  • akollegger