cexpr 0.6.0

A C expression parser and evaluator
Documentation

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.