Skip to content

SkylerLipthay/string_to_expr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Compile-time expression evaluation for strings in Rust

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages