Skip to content

Latest commit

 

History

History
20 lines (14 loc) · 596 Bytes

File metadata and controls

20 lines (14 loc) · 596 Bytes

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));