string_to_expr

Crates.iostring_to_expr
lib.rsstring_to_expr
version0.0.2
sourcesrc
created_at2015-03-22 09:01:52.745439
updated_at2015-12-11 23:56:18.321051
descriptionCompile-time expression evaluation for strings
homepage
repositoryhttps://github.com/SkylerLipthay/string_to_expr
max_upload_size
id1631
size7,742
Skyler (SkylerLipthay)

documentation

README

string_to_expr

Compile-time expression evaluation for strings. Inspired by trws. Check tests/tests.rs for examples.

I found this technique to be necessary to concatenate identifiers in macros. Really handy for generating structs, enums, and functions. One day, Rust will probably be able to parse macros with more flexibility. Until then, I'm using this crazy mess.

Commit count: 2

cargo fmt