Skip to content

MODLanguage/modl-parser

Repository files navigation

modl-parser

This package parses MODL strings to an intermediate structure suitable for the MODL Interpreter and is unlikely to be of much use on its own.

A simple TypeScript usage example follows.

import { parseModl } from './MODLParser';

const result = parseModl('x=y');

console.log(JSON.stringify(result));

Or in JavaScript (e.g. using RunKit):

const modlparser = require("modl-parser")

const result = modlparser.parser('x=y');

console.log(JSON.stringify(result));

About

A TypeScript parser for the MODL grammar.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published