Skip to content

Latest commit

 

History

History
45 lines (31 loc) · 979 Bytes

README.md

File metadata and controls

45 lines (31 loc) · 979 Bytes

Expression evaluator

Project for 42 Authorship Program. First project of "Write your own interpreter" cycle.

Mathematical expressions evaluator. Allows you to evaluate expression within range of supported operators.

Table of contents

Requirements

Python >= 3

Install

Simply clone the repo:

git clone https://github.com/IvanKozlov95/rpn_converter

Usage

Run main.py file and send expression string you want to evaluate:

./main.py "1 + 3 * (2 - 1)^2"

Or:

python main.py "1 + 3 * (2 - 1)^2"

Features

Following operations are supported

  • Addition/Subtraction
  • Multiplication
  • Division/Modulo
  • Power

License

This project is licensed under the Apache license 2.0.

Resources