๐Ÿ“ฆ haasal / calc-parser-rs

โ˜… 0 stars โ‘‚ 0 forks ๐Ÿ‘ 0 watching
๐Ÿ“ฅ Clone https://github.com/haasal/calc-parser-rs.git
HTTPS git clone https://github.com/haasal/calc-parser-rs.git
SSH git clone git@github.com:haasal/calc-parser-rs.git
CLI gh repo clone haasal/calc-parser-rs
Alexander Haas Alexander Haas feat: added user input c200121 2 years ago ๐Ÿ“ History
๐Ÿ“‚ master View all commits โ†’
๐Ÿ“ .vscode
๐Ÿ“ src
๐Ÿ“„ .gitignore
๐Ÿ“„ Cargo.lock
๐Ÿ“„ Cargo.toml
๐Ÿ“„ README.md
๐Ÿ“„ README.md

calc-parser-rs

This is a Lexer (Logos) + Parser (Vanilla Rust) implementation for a simple calculator grammar.

Features: It supports bracketed expressions *,/,-,+ and floating point numbers (i.e. 123, 123.6, 123e-6 etc.).

Limitations: Currently negative numbers aren't supported (i.e. 4 * (-12)) won't work