@gram-data/gram-value

Enrich gram data graphs with js objects and primitives

Usage no npm install needed!

<script type="module">
  import gramDataGramValue from 'https://cdn.skypack.dev/@gram-data/gram-value';
</script>

README

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