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

前端 未结 7 1743
粉色の甜心
粉色の甜心 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

    ANTLR parsers, and in fact any parser built with something LALR or the like, tend to be big. Do you have an actual grammar for this? It looks like it might be most readily parsed with a hand-written recursive-descent parser, but it's not much of a sample.

    Oops, my mistake, as ANTLR apparently generates recursive-descent. Still, I've had problems with ANTLR generating big parsers.

提交回复
热议问题