Skip to content

an arithmetic calculator with it's own lexer, parser, and interpreter

Notifications You must be signed in to change notification settings

sidsurakanti/calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A simple math interpreter.

Requirements

  • Python 3.6+
  • Colorama package

Supports

  • Basic arithmetic (+, -, *, /)
  • Order of Operations
  • Powers, roots, factorials

Installation

git clone https://github.com/sidsurakanti/calculator.git
cd /path/to/project/
pip install -r requirements.txt

Usage

>>> 6 * (12 + 56)
408.0
>>> 77 * 12
924.0
>>> 25 * 0.5
12.5
>>> 999 + 998
1997.0
>>>

About

an arithmetic calculator with it's own lexer, parser, and interpreter

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Languages