8000 GitHub - arikchakma/crappy: 🦀 A crappy little math expression parser
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

arikchakma/crappy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation


Crappy Calculator

Buy me a coffee

A crappy calculator written in Rust
Just enter an expression, and it will be evaluated

Note

This project is created purely for learning purposes. It's a simple implementation to understand basic concepts of parsing, lexing, and interpreting expressions, and Rust. Don't expect production-grade features or performance!

Start Using

You can start using the calculator by cloning the repository and running the following commands:

git clone git@github.com:arikchakma/crappy.git
cd crappy

cargo build --release
./target/release/crappy

# Start the REPL
--------------------
Crappy Calculator!
--------------------
Enter an expression to evaluate:
Type '/bye' to quit.
>> 2 + 2
4
>> 10 * 5
50
>> /bye
Bye!

Features

  • Basic Arithmetic Operations (+, -, *, /, ^)
  • Integer number support
  • Simple expression evaluation
  • Interactive command-line interface
  • MIT licensed

Roadmap

  • Add floating-point number support
  • Implement multi-line expression support
  • Add environment variables support
  • Improve error messages and user feedback

Contributing

Feel free to submit pull requests, create issues, or spread the word.

Acknowledgments

License

MIT © Arik Chakma

About

🦀 A crappy little math expression parser

Resources

License

Stars

Watchers

Forks

Languages

0