Skip to content
/ rustcalc Public

Simple calculator on rust as a part of diving into the language

Notifications You must be signed in to change notification settings

flrdv/rustcalc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Simple calculator on rust as a part of diving into the language

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages