anhldbk
anhldbk

Reputation: 4587

PEG parser library on Windows OS

Are there any Parsing Expression Grammar (PEG) C++ libraries for Windows? I've tried in vain to compile pegc/legc, pegc with MS Visual Studio. :(

Upvotes: 1

Views: 783

Answers (2)

wilx
wilx

Reputation: 18228

Try to use a search engine. You will find a wiki page about PEGs and there you will find a list of libraries implementing PEGs. One of them is Boost.Spirit.

Upvotes: 0

phooji
phooji

Reputation: 10385

I have had good luck with Boost.Spirit.Qi, which should work reasonably well with recent versions of the Microsoft compiler. Be forewarned, though: there is a learning curve.

If you just want a parser generator, also have a look at this related question: Is the ANTLR parser generator best for a C++ app with constrained memory?

Upvotes: 0

Related Questions