Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
#Modelica in JavaScript – MoiJS
# Modelica in JavaScript – MoiJS

Moijs provides a [Modelica](https://www.Modelica.org) parser in JavaScript. This enables the processing of Modelica definitions in a Web browser. Moijs can also run server-side or on the command line using a tool like [Node.js](http://nodejs.org).

The Modelica parser `moparser.js` is generated with [Jison](http://zaach.github.io/jison/) out of the grammar in `moparser.jison` and the lexical specification in `molexer.jisonlex`.

##CodeMirror
## CodeMirror

A Modelica editing mode for [CodeMirror](http://codemirror.net) is generated from `molexer.jison` and `molexer.jisonlex`.

##Examples
## Examples

The [moijs project pages](http://omuses.github.io/moijs) show running examples.

###Running in a Web browser
### Running in a Web browser

- `moparse.html` – HTML page using CodeMirror and invoking `moparser.js`

###Running in Node.js
### Running in Node.js

- `moparse.js` – invoke `moparser.js` for console input or for files of a Modelica package
- `molex.js` – tokenize console input