Skip to content

Latest commit

 

History

History
15 lines (11 loc) · 293 Bytes

README.md

File metadata and controls

15 lines (11 loc) · 293 Bytes

Calculator

Why?

In order to dive into Rust.

How?

Using simple lexer with radix tree for operators table, recursive top-down parser for AST and a simple recursive AST-evaluator.

Features?

Unary, exp, floats, variables, function calls.

Example

sum(1/2, 2.5) * -pi ** 2