@zaml/parser
v0.7.1
Published
ZAML tokenizer & lexer
Downloads
2
Keywords
Readme
zaml-parser
Javascript tokenizer & lexer for ZAML.
Thanks to Github ❤️ ci is integrated with Github Actions
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