Skip to content

Simp is a simple mathematical Interpreter written in JavaScript. It supports basic arithmetic operations including addition, subtraction, multiplication, and division respecting the correct order of operations.

License

Notifications You must be signed in to change notification settings

acharyamanish006/SIMP

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Simp (SImple Mathematical Interpreter)

SI M P

Screenshot from 2024-06-23 13-08-50

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

About

Simp is a simple mathematical Interpreter written in JavaScript. It supports basic arithmetic operations including addition, subtraction, multiplication, and division respecting the correct order of operations.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published