@zaml/parser

ZAML tokenizer & lexer

Usage no npm install needed!

<script type="module">
  import zamlParser from 'https://cdn.skypack.dev/@zaml/parser';
</script>

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

License

MIT