Skip to content

Latest commit

 

History

History
25 lines (21 loc) · 651 Bytes

README.md

File metadata and controls

25 lines (21 loc) · 651 Bytes

Euler

Euler is a mathematical expression evaluator. It features a recursive descent parser that directly compiles to bytecode (One pass)

Use

Simple arithmetic

> (2 + 12) * (2 - -2) / 1
56

Trigonometric functions (sin, cos, tan)

> sin(12)
-0.53657291

Features:

  • Arithmetic expressions (addition, substraction, division and multiplication, and exponenciation)
  • Trigonometric functions sin, cos, tan
  • Constants like pi and e

Installation

For now it has only been tested on OS X and clang so I would not be surprised if it only works on that enviroment. Just clone the project and run make in the src directory.