Generate C ++ code for BNF grammar

I reviewed the following software tools:

ANTLR seems the most direct, but its documentation is lacking. Ragel looks the same, but I don’t see an easy way to convert BNF to its syntax.

What other tools are available that can accept BNF input and create an appropriate, Unicode-compatible, cross-platform, stand-alone, C ++ parser?

Thanks so much for all the suggestions.

Edit: Changed the Objective-C requirement for C ++.

+3
source share
4 answers
+5

TDParseKit! ( , Objective-C BNF)

+3

QLALR? QtDF. , , , , , .

+1

You can try GOLD Parser! This is a great tool for parsing and generating. With a simple user interface, all you have to do is provide a valid grammar file and choose your preferred programming languages ​​for your output code.

+1
source

Source: https://habr.com/ru/post/1721759/


All Articles