Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

README.md

CLI / REPL for Arithmetic Parser

Build Status License: MIT OR Apache-2.0

CLI and REPL for parsing and evaluating arithmetic expressions that uses arithmetic-parser and arithmetic-eval internally. Supports integer, modular, real and complex-valued arithmetic. Each arithmetic is supplied with all standard functions from the arithmetic-eval crate (map, assert and so on) and some functions / constants specific to the number type.

REPL example

Usage

Tip. Run the binary with --help flag to find out more details.

Parsing

Use the --ast flag to output the AST of the expression. The AST is output in the standard Rust debug format.

Evaluating

Without the --ast or --interactive flags, the command evaluates the provided expression in the selected arithmetic.

REPL

With the --interactive / -i flag, the command works as REPL, allowing to iteratively evaluate expressions.

Minimum supported Rust version

The crate supports the latest stable Rust version. It may support previous stable Rust versions, but this is not guaranteed.

License

Licensed under either of Apache License, Version 2.0 or MIT license at your option.

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in arithmetic-parser-cli by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.