10

I can't find any download for boost spirit 3. Seems like the official website stopped talking about it at the end of December? Where did it go?

Oliver K
  • 295
  • 2
  • 15
  • For reference: Spirit X3 3.0.2 https://www.boost.org/doc/libs/1_68_0/libs/spirit/doc/x3/html/index.html – alfC May 20 '19 at 07:39

1 Answers1

8

The source code is available on Github. Documentation is here. Quoting from the Blog:

C++ Now 2015. Today is the official release of Spirit X3, aka Spirit 3.0.0. X3 will be in beta, coexisting side by side with Qi, Karma, Lex and Classic.

According to Sehe (see comments), X3 was included in the Boost release at least as far back as November 2015. Since it's header only though, I figure you could just as easily download Spirit from Github.

If you look in the 'Include' section of the documentation (linked above), you'll read:

Spirit is a header file only library. There are no libraries to link to. To use Spirit X3 simply include:

#include <boost/spirit/home/x3.hpp> To distinguish between Spirit versions, you can inspect the version file:

#include <boost/spirit/home/x3/version.hpp> using the preprocessor define

SPIRIT_X3_VERSION It is a hex number where the first two digits determine the major version while the last two digits determine the minor version. For example:

#define SPIRIT_VERSION 0x3000 // version 3.0

Peek in Github and you'll find include/boost/spirit/home/x3. If you check the history of pull requests you'll see the project is very much alive. If you have doubts about the activity of the project, contact the team.

Liam M
  • 5,306
  • 4
  • 39
  • 55
  • Yes I found that, but question still is what happened to the project? – Oliver K Mar 17 '17 at 16:32
  • 1
    No activity since 2015? And the official boost release is still 2.5.2? Is Spirit 3 dead? Surely by now some updates would have happened... – Oliver K Mar 17 '17 at 16:44
  • @OliverK Oh I see, small update. The project is still active (check github PR's and source code update history) but with something like Spirit, I think you'll find it to be less actively edited than things that require less up-front design. – Liam M Mar 18 '17 at 01:33
  • One wonders why they don't just put the X3 docs together with the rest of the Spirit docs, as they ship X3 in Boost already. – Felix Dombek Mar 30 '17 at 14:25
  • 2
    @FelixDombek having used boost for a number of years, I've found that the documentation is often a sore point. The libraries are great (albeit complex), but learning to use them is a matter of will-power. – Liam M Mar 31 '17 at 00:01
  • 4
    Come to like X3, but to bad the documentation for X3 does not match the code completely... Maybe they will implement some of the missing features in the future, hope someone will. Example missing documented X3 features: 'as[]()[a]', or 'lazy(fp)' – Oliver K Apr 22 '17 at 21:11