15 releases

✓ Uses Rust 2018 edition

0.4.0 Mar 9, 2020
0.3.6 Nov 5, 2019
0.3.5 Mar 19, 2019
0.3.3 Oct 18, 2018
0.1.3 Jul 20, 2016

#12 in FFI

Download history 24841/week @ 2020-01-25 24819/week @ 2020-02-01 25069/week @ 2020-02-08 26250/week @ 2020-02-15 27905/week @ 2020-02-22 28519/week @ 2020-02-29 31384/week @ 2020-03-07 35537/week @ 2020-03-14 39171/week @ 2020-03-21 35529/week @ 2020-03-28 34185/week @ 2020-04-04 35683/week @ 2020-04-11 41018/week @ 2020-04-18 37809/week @ 2020-04-25 34708/week @ 2020-05-02 35701/week @ 2020-05-09

130,361 downloads per month
Used in 1,275 crates (2 directly)

Apache-2.0/MIT

39KB
869 lines


lib.rs:

A C expression parser and evaluator.

This crate provides methods for parsing and evaluating simple C expressions. In general, the crate can handle most arithmetic expressions that would appear in macros or the definition of constants, as well as string and character constants.

The main entry point for is [token::parse], which parses a byte string and returns its evaluated value. nom's result types, re-exported.

Dependencies

~675KB
~14K SLoC