modl-interpreter
TypeScript icon, indicating that this package has built-in type declarations

0.1.0 • Public • Published

MODL Interpreter in TypeScript

This repository contains an implementation of a MODL interpreter in TypeScript.

Installation With NPM

Use npm install --save modl-interpreter

TypeScript Example

import { Interpreter } from './modl-interpreter/Interpreter';

const interpreter = new Interpreter();

const jsonString = interpreter.interpretToJsonString('x = a MODL string');

console.log(jsonString);

This example produces the output:

{"x":"a MODL string"}

JavaScript Example

const modl = require('modl-interpreter');

const jsonString = modl.interpreter.interpretToJsonString('x = a MODL string');

console.log(jsonString);

This example produces the same output as above.

Readme

Keywords

none

Package Sidebar

Install

npm i modl-interpreter

Weekly Downloads

2

Version

0.1.0

License

Apache-2.0

Unpacked Size

31.1 kB

Total Files

19

Last publish

Collaborators

  • frednum
  • twalmsley
  • elliottinvent