Erasm++, the Embedded Runtime Assembler in C++, is an Embedded Domain Specific Language (EDSL) in C++ for runtime code generation on Intel 64/IA-32 architectures. It supports complete compile-time syntax checking, and its code generators run very quickly because necessary data are computed statically. Also included are GenericDsm, a fast and generic instruction decoder library which supports "pattern matching" against the decoded instructions, and MetaPrelude, a Haskell-like lazy metaprogramming library that helps implementing EDSLs in C++.
sqlpp11 is an embedded domain-specific language which allows programming SQL very naturally in modern C++. It also enables the compiler to detect syntax errors, type errors, name errors, and even some semantic errors before they ever hit unit tests or production. Queries can be constructed at compile time or run time, offering varying levels of safety and flexibility.