-
Notifications
You must be signed in to change notification settings - Fork 2
Home
An interpreter with language syntax like MATLAB®/Octave written in TypeScript.
his package emulates a parser and evaluator for a subset of MATLAB®/Octave language. It is written completely in TypeScript.
The project page with a functional demo use of this package in a Web application can be found at mathjslab.com. The repository is in the MathJSLab Organization on GitHub.
It can run in browser environment and implements an arbitrary precision arithmetics using decimal.js package.
It uses the ANTLR parser generator to generate a parser that create an AST (Abstract Syntax Tree) of input.
Other components besides the parser are the evaluator, which computes the inputs, and the MathML unparser, that generates mathematical representations of the inputs and results.
This software is intended for educational purposes, to provide teachers and students with a computer aided calculation tool that is capable of running in a browser environment. So it can be easily adapted to be used on different devices and environments.