Skip to content

This project is a simple calculator compiler implemented in Node.js using Jison. It can parse and evaluate basic arithmetic expressions.

Notifications You must be signed in to change notification settings

MrAkshayAS/CalCompiler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Node.js Calculator Compiler 🚀

This project is a simple calculator compiler implemented in Node.js using Jison. It can parse and evaluate basic arithmetic expressions.

Features

  • Supports addition, subtraction, multiplication, and division operations.
  • Handles parentheses for grouping expressions.
  • Parses and evaluates arithmetic expressions.

Getting Started

Prerequisites

Make sure you have Node.js installed on your machine.

Create a text file for ex : input.txt and your calcution

For Ex :

2 + 3 (4 - 1)

Installation

  1. Intall node :
       npm i
  2. Run :
     node cal input.txt
    
also one this I just create this project for learning how to create Compiler and how it work .

About

This project is a simple calculator compiler implemented in Node.js using Jison. It can parse and evaluate basic arithmetic expressions.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published