11 releases

0.2.5 Mar 1, 2022
0.2.4 Feb 22, 2022
0.2.3 Mar 18, 2021
0.1.4 Mar 16, 2021

#2475 in Parser implementations

Download history 29/week @ 2024-02-20 33/week @ 2024-02-27 1/week @ 2024-03-12

63 downloads per month
Used in cheval

MIT license

46KB
1.5K SLoC

expresso

Experimental/educational expression parser, and runner

Warning: Breaking API changes are expected until 1.0.0!

Note: Expresso is a word play on Espresso, and Expression

Supported

  • Whitespace

  • Operands

    • i32
    • f32 (Note: No leading or trailing dot! 0.34 and 12.0 work, .34 and 12. don't!)
  • Operators

    • +
    • *
    • -
    • /
  • Braces

    • (
    • )
  • Variables

  • Function Calls

  • Argument Lists

Expresso

There is a expresso binary included that can be used for quick checking/running of expressions.

Future

Other

Development will be done test driven.

Dependencies

~2–2.8MB
~58K SLoC