Skip to content

library for parsing and manipulating MMEL models

License

Notifications You must be signed in to change notification settings

paneron/libmmel

Repository files navigation

libmmel

GitHub release (latest SemVer including pre-releases) Build / Test Lint Audit Status

Introduction

This library implements serialization and deserialization of MMEL models, and provides exported interfaces for relevant data types.

Note
This model does not contain runtime information. Any such runtime information should be implemented in a separate model.

Installation

Run:

npm install @paneron/libmmel

Usage Examples

import { textToMMEL, MMELToText } from '@paneron/libmmel';
import type { MMELModel } from '@paneron/libmmel';


const text = '... insert MMEL text here ...';
const mmel: MMELModel = textToMMEL(text);
console.log(MMELToText(mmel));

Folder Structure

  • interface/

    • Contains the data structures of different elements in the model

  • handler/

    • Contains the codes for parsing MMEL structure to MMEL model

  • util/

    • Provides other utility functions (Check the comments inside)

Roadmap