lexper 0.0.1

A simple CLI calculator with a handwritten lexer and parser in Rust.
Documentation
  • Coverage
  • 28%
    14 out of 50 items documented3 out of 8 items with examples
  • Size
  • Source code size: 26.15 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 4.48 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 17s Average build duration of successful builds.
  • all releases: 15s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • JerryImMouse/lexper
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • JerryImMouse

lexper

lexper is a small & lightweight calculator written in Rust with custom lexer and parser.
It also supports constants and function calls(currently sin() and PI as constant).

You can trust me, it rans at +-466us with the following expression: "sin(1.2)^2 + 4.0 * (sin(1000) + sin(2.0)) * 10.5".
Not so fast as I, probably, would like, but im satisfied with the results for now.