calcula 0.1.0

A simple calculator library and command-line app
Documentation
  • Coverage
  • 0%
    0 out of 1 items documented0 out of 0 items with examples
  • Size
  • Source code size: 25.69 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.01 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 31s Average build duration of successful builds.
  • all releases: 31s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • caydenlund/calcula
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • caydenlund

calcula

A simple calculator library and command-line app.

Gets input with rustyline, so emacs-style shortcuts are supported (Ctrl-A to move to the beginning of the line, Ctrl-E to move to the end of the line, Ctrl-U to clear, etc.). See their linked GitHub page for more information.

Planned Features

  • Interactive REPL mode or performing a single calculation as an argument
  • Rust-style variable bindings and number types (i32, u8, f64, etc.)
  • Functions
  • Built-in math library for constants like pi and operations like sin(2.0) sqrt(7.0)
  • Number literals in various bases (0xFF, 0b1010, 0o777 etc.)
  • Meta commands: :binary for printing as binary, :hex for printing as hex, :type for printing a variable's type, etc.
  • Bitfield operations ((0b1010 << 2) | 0b11)
  • Error handling: warning on overflow of datatypes

License

Licensed under Apache 2.