开发者

PEG parser library on Windows OS

开发者 https://www.devze.com 2023-02-14 14:49 出处:网络
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. :(I have had good luck with Boost.Spirit.

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. :(


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?


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消