Is the ANTLR parser generator best for a C++ app with constrained memory?

前端 未结 7 1646
粉色の甜心
粉色の甜心 2021-02-06 08:10

I\'m looking for a good parser generator that I can use to read a custom text-file format in our large commercial app. Currently this particular file format is read with a handm

相关标签:
7条回答
  • 2021-02-06 08:32

    Realistically, if your grammar is relatively small, and doesn't contain many ambiguities or parsing complexities then it shouldn't matter if you use a recursive descent parser or a shift-reduce parser.

    I would say look at ANTLR and Spirit, also look at Flex and Bison. There are other, less known parsers like Coco/R (contains generators for a lot of languages, including C++) also.

    0 讨论(0)
提交回复
热议问题