Welcome to Spirit

Spirit is a set of C++ libraries for parsing and output generation implemented as Domain Specific Embedded Languages (DSEL) using Expression templates and Template Meta-Programming. The Spirit libraries enable a target grammar to be written exclusively in C++. Inline grammar specifications can mix freely with other C++ code and, thanks to the generative power of C++ templates, are immediately executable.

Spirit is part of Boost Libraries, a peer-reviewed, open collaborative development effort.

Dec ’09 21

In the previous two installments of this article series (The Magical Power of Attributes in Spirit – Primitives and The Magical Power of Attributes in Spirit – Operators) we talked about the attribute handling in different constructs utilized to build parsers and generators with Spirit. We will continue this walkthrough while touching on the remaining parts: directives and non-terminals

See full article here.

GD Star Rating
loading...
Tagged with:
Dec ’09 15

How about some trivia…

So you know BNF (Backus-Naur Form or originally Backus Normal Form) and EBNF (Extended Backus-Naur Form). But did you know Panini’s grammar? It defined Sanskrit using a variety of formal techniques including recursion, transformations, and metarules. That was around 500 B.C.!

See this link. And this.

GD Star Rating
loading...
Dec ’09 14

Each operator implements its own set of attribute propagation rules. These rules define the synthesized attributes of Qi expressions and the consumed attributes of Karma expressions. As we have seen already, it is very important to understand how the synthesized and consumed attributes are formed. Parsers and generators are most elegant and efficient if they are tightly integrated with your data structures, and learning to match those to the attributes is crucial to being able to apply Spirit for your own needs.

See full article here.

GD Star Rating
loading...
Tagged with:
Dec ’09 11

Spirit V2.1 has been released only a couple of weeks ago. The first feedback we have gotten so far was overwhelming! Many people seem to quickly understand the concepts of the new library, being able to apply its power to their needs. We try to follow people’s comments and watch for reported problems. There is one theme recurring over and over again: attributes. This new (for Spirit) concept turns out to be the most difficult idea to understand, especially for somebody starting to work with the library.

See full article here.

GD Star Rating
loading...
Tagged with:
Dec ’09 06

We are trying to get the best possible content to you by regularly publishing articles about different aspects of the new Spirit V2.1 library (released with Boost 1.41). Now we need your feedback! Sure, you already can leave comments, but we thought it might be cool to add the possibility to rate the quality of the articles. So just click the stars at the end of a post to tell us what you think. Moreover, we added thumbs up/down rating for comments. That’s an easy way for you to agree or disagree with other user’s opinions. Use it!

And, by the way, it would be helpful if you rated the older articles as well.

GD Star Rating
loading...
Nov ’09 26

Spirit V2.1 Compiler Compatibility

By Hartmut Kaiser General Comments Off

We started to collect the information about what compilers and platforms can be used to compile applications based on Spirit V2.1. Please add any compiler and platform you have been using successfully to compile your Spirit applications.

For a list of known compilers go here.

GD Star Rating
loading...
Tagged with:
Nov ’09 24

On this new page we collect projects and products using Boost.Spirit. This list is not exhaustive as we certainly don’t know about every use. Spirit is a Boost library making it readily available to a large number of developers. If you want your product, in house use, or open source project to be included in this list, please send a note to the Spirit Mailing List or simply add a comment below and we’ll gladly add the info.

See the full list here.

GD Star Rating
loading...
Tagged with:
preload preload preload