zaml-parser
Javascript tokenizer & lexer for ZAML.
Thanks to Github
Install
npm install @zaml/parser
# or
yarn add @zaml/parser
API Documentation
Checkout API Documentation
Usage
zaml.parse(text:string):Node
Parse a ZAML source code, and returns the root node of AST
Example
import zaml from 'zaml-parser';
const node = zaml.parse('Hello World!');
console.log(node);
Test
yarn test
Test with more info of tokenizing
DEBUG=verbose yarn test