Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Generate C++ code for BNF grammar [closed]

I have looked at the following software tools:

  • Ragel
  • ANTLR
  • BNF Converter
  • Boost::Spirit
  • Coco/R
  • YACC

ANTLR seems the most straight-forward, however its documentation is lacking. Ragel looks possible, too, but I do not see an easy way to convert BNF into its syntax.

What other tools are available that can take BNF input and generate a corresponding, Unicode-friendly, cross-platform, standalone, C++ parser?

Many thanks for all suggestions.

Edit: Changed Objective-C requirement to C++.

like image 932
Dave Jarvis Avatar asked Dec 01 '25 09:12

Dave Jarvis


1 Answers

Try boost.spirit 2.

The boost spirit user list is very active and answers are quick from the authors.

like image 144
t.g. Avatar answered Dec 04 '25 00:12

t.g.



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!