Integrating ANTLR 4 in a C++ application

后端 未结 4 1106
误落风尘
误落风尘 2021-01-05 09:40

Recently I picked up a copy of The Definitive ANTLR 4 Reference and since I am sophisticated when it comes to working with grammars and languages I wanted to wo

4条回答
  •  刺人心
    刺人心 (楼主)
    2021-01-05 10:24

    I found the ANTLR 3 C/C++ target almost unusable. It contains so many hacks to circumvent the lack of exceptions in C that it was recommended for experts only. Though it's Terr's call, I hope ANTLR 4 doesn't support target languages without native exceptions unless it can isolate whatever hackery is required to do so from end users. The ANTLR 2 C++ target is cleaner than ANTLR 3's, but ANTLR 2 itself has limitations, including extremely messy licensing (making it difficult to use in commercial products).

提交回复
热议问题