July 24, 2006 at 1:30 am · Filed under C++
Bookmark on del.icio.us
Would you like to generate a hierarchy of types on the fly using C++? Well, at least on-the-compilation-fly…
You could always use Andrei’s magnificent Loki library, or you could use my proposal, gen_hierarchy.
In short, I allow for two distinct types of hierarchies:
Spine-like, with the given types protruding as maximal elements on that spine.
A “simple” chain.
Let us [...]
July 6, 2006 at 11:00 pm · Filed under C++, Tools Reviews
Bookmark on del.icio.us
When diving down among the various parser generators and compiler tools around, there is another one – beside BNFC – that sticks out: Spirit. A template-oriented library that is part of the terrific Boost libraries (http://www.boost.org.)
Whereas most tools rely on code generation, and even code generation generation (BNFC…), Spirit is a metaprogramming library that describes [...]