@acharyamanish/simp
v0.1.3
Published
## Overview
Downloads
46
Readme
Simp (SImple Mathematical Interpreter)
SI M P
Overview
Simp is a simple mathematical Interpreter written in JavaScript. It supports basic arithmetic operations including addition, subtraction, multiplication, and division. The lexer parses the input expression into tokens, and the parser evaluates the expression respecting the correct order of operations.
Table of Contents
Installation
To install the Simp
package, you can use npm:
npm install @acharyamanish/simp
Example
import Simp from "@acharyamanish/simp";
const simp = new Simp("10 + 2 * 6 - 25/5");
console.log(simp.run()); // Output: 17