meta-template [x]BNF compiler
I just stubled upon this, and though it was interesting.
It could be quite useful in creating a scripting package.
"The Spirit framework enables a target grammar to be written exclusively in C++. Inline EBNF grammar specifications can mix freely with other C++ code..."
Spirit Parser Framework
/me drools.
Documents [ GDNet | MSDN | STL | OpenGL | Formats | RTFM | Asking Smart Questions ]
C++ Stuff [ MinGW | Loki | SDL | Boost. | STLport | FLTK | ACCU Recommended Books ]
Documents [ GDNet | MSDN | STL | OpenGL | Formats | RTFM | Asking Smart Questions ]
C++ Stuff [ MinGW | Loki | SDL | Boost. | STLport | FLTK | ACCU Recommended Books ]
neato.
Any idea of how fast it is?
University is a fountain of knowledge, and students go there to drink.
Any idea of how fast it is?
University is a fountain of knowledge, and students go there to drink.
Speaking of meta-programming, can any of you recommend a good book that introduces C++ meta-programming? I would really like to learn about this.
quote:Original post by felonius
Speaking of meta-programming, can any of you recommend a good book that introduces C++ meta-programming? I would really like to learn about this.
That ''introduces'', not really, but Modern C++ Design by A. Alexandrescu is pretty much ''it'' when it comes down to template metaprogramming.
For ''introduction'', you''ll have to scour books like The C++ Standard Library by Josuttis and extract the underlying concepts from his coverage of the STL.
Alternatively, SGI''s STL website (see .sig) can give you hints too.
Same deal with the Boost website (see .sig too).
Documents [ GDNet | MSDN | STL | OpenGL | Formats | RTFM | Asking Smart Questions ]
C++ Stuff [ MinGW | Loki | SDL | Boost. | STLport | FLTK | ACCU Recommended Books ]
thanks. I already use STL in my daily work. I just wondered about this meta-programming thing.
google it, there ought to be some hits
The definition of template meta-programming is a little ambiguous; orginally it was used to refer to recursive templates - for example you could implement a template that calculates a given Fibonacci number at compile time. Now anything that uses contemporary template designs is described as meta-template programming (for example using policy & trait templates).
I haven't had time to look over the library in detail yet, I just thought it was interesting enough to share
Apparently they've sumbitted a revision to Boost.
...
I found another interesting library: this is from a post to C++.mod. It's a database template library, that provides STL compatible containers and iterators for ODBC; compiles with MSVC6/7, BCB5/6 for Windows, & gcc 3.1 for linux.
DTL
[edited by - Magmai Kai Holmlor on June 10, 2002 6:47:54 PM]
The definition of template meta-programming is a little ambiguous; orginally it was used to refer to recursive templates - for example you could implement a template that calculates a given Fibonacci number at compile time. Now anything that uses contemporary template designs is described as meta-template programming (for example using policy & trait templates).
quote:Big B neato.
Any idea of how fast it is?
I haven't had time to look over the library in detail yet, I just thought it was interesting enough to share
Apparently they've sumbitted a revision to Boost.
...
I found another interesting library: this is from a post to C++.mod. It's a database template library, that provides STL compatible containers and iterators for ODBC; compiles with MSVC6/7, BCB5/6 for Windows, & gcc 3.1 for linux.
DTL
[edited by - Magmai Kai Holmlor on June 10, 2002 6:47:54 PM]
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement