The Spirit Parser Framework is an object oriented recursive descent parser generator framework implemented using template metaprogramming techniques. Expression templates allow users to approximate the syntax of Extended Backus Naur Form (EBNF) completely in C++. Parser objects are composed through operator overloading and the result is a backtracking LL(∞) parser that is capable of parsing rather ambiguous grammars.
Spirit can be used for both lexing and parsing, together or separately.
This framework is part of the Boost libraries.
Famous quotes containing the words spirit and/or framework:
“And my spirit is grown to a lordly great compass within,
That the length and the breadth and the sweep of the marshes of
Glynn
Will work me no fear like the fear they have wrought me of yore
When length was failure, and when breadth was but bitterness sore,
And when terror and shrinking and dreary unnamable pain
Drew over me out of the merciless miles of the plain,
Oh, now, unafraid, I am fain to face
The vast sweet visage of space.”
—Sidney Lanier (18421881)
“The city is a fact in nature, like a cave, a run of mackerel or an ant-heap. But it is also a conscious work of art, and it holds within its communal framework many simpler and more personal forms of art. Mind takes form in the city; and in turn, urban forms condition mind.”
—Lewis Mumford (18951990)