simple_calculator_cmd

Crates.iosimple_calculator_cmd
lib.rssimple_calculator_cmd
version0.1.1
sourcesrc
created_at2021-11-07 08:15:45.173615
updated_at2021-11-07 08:24:46.380678
descriptioncommand line simple calculator and library
homepage
repositoryhttps://github.com/chikaku/simple_calculator_cmd
max_upload_size
id477986
size19,133
Kevin Chen (chikaku)

documentation

https://docs.rs/simple_calculator_cmd

README

simple calculator command

command line simple calculator and library

Context Free Grammar

Left Recursion

Goal -> Statement

Statement -> Expression

Expression -> Expression + Term | Expression - Term | Term | + Term | - Term

Term -> Term * Factor | Term / Factor | Factor

Factor -> ( Expression ) | Factor ^ Factor| number

Right Recursion

Goal -> Statement

Statement -> Expression

Expression -> Term Expression' | + Term Expression' | - Term Expression'

Expression' -> + Term Expression' | - Term Expression' | ε

Term -> Factor Term'

Term' -> * Factor Term' | / Factor Term' | ε

Factor -> ( Expression ) Factor' | number Factor'

Factor' -> ^ Factor | ε
Commit count: 2

cargo fmt