0.3.11 • Published 3 years ago

@gram-data/gram-ops v0.3.11

Weekly downloads
48
License
MIT
Repository
github
Last release
3 years ago

(ast)-[ops]->(features)

Utility operations for extracting path features from gram AST.

How to gram-ops

Install:

npm install @gram-data/gram-ops

Build a path

Use [gram-builder] to create a path.

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

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

Extract features from the path

Extract a node list:

import { nodes } from '@gram-data/gram-ops';

const ns:GramPath[] = nodes(path); 

Extract an edge list:

import { nodes } from '@gram-data/gram-ops';

const es:GramPath[] = edges(path); 

Next Steps

0.3.11

3 years ago

0.4.0-alpha.8

3 years ago

0.3.10

3 years ago

0.4.0-alpha.6

3 years ago

0.4.0-alpha.5

3 years ago

0.4.0-alpha.4

3 years ago

0.4.0-alpha.3

3 years ago

0.4.0-alpha.2

3 years ago

0.4.0-alpha.1

3 years ago

0.3.9

3 years ago

0.3.9-alpha.2

3 years ago

0.3.6

3 years ago

0.3.8

3 years ago

0.3.7

3 years ago

0.3.5

3 years ago

0.3.4

3 years ago

0.3.2

3 years ago

0.3.1

3 years ago

0.2.18

3 years ago

0.2.17

3 years ago

0.2.15

3 years ago

0.2.14

3 years ago

0.2.13

3 years ago

0.2.13-alpha.1

3 years ago

0.2.12

3 years ago

0.2.11

3 years ago

0.2.10

3 years ago

0.2.9

3 years ago