[[bin]]
name = "expression_parser"
path = "src/main.rs"
[dependencies.anyhow]
version = "1"
[dependencies.clap]
features = ["derive"]
version = "4.5"
[dependencies.pest]
version = "2.7"
[dependencies.pest_derive]
version = "2.7"
[dependencies.regex]
version = "1"
[dev-dependencies.pretty_assertions]
version = "1.4"
[lib]
name = "expression_parser"
path = "src/lib.rs"
[package]
autobenches = false
autobins = false
autoexamples = false
autolib = false
autotests = false
build = false
description = "A minimal Rust parser and evaluator for arithmetic expressions with variables, built using the pest parsing library. It converts a text formula into an abstract syntax tree (AST) and computes the result based on user-provided variable values."
edition = "2024"
license = "MIT"
name = "expression_parser"
readme = "README.md"
version = "0.1.0"
[package.metadata.docs.rs]
all-features = true
targets = ["x86_64-unknown-linux-gnu"]
[[test]]
name = "parser_tests"
path = "tests/parser_tests.rs"