Is there an alternative for flex/bison that is usable on 8-bit embedded systems?

后端 未结 6 892
萌比男神i
萌比男神i 2020-11-21 05:09

I\'m writing a small interpreter for a simple BASIC like language as an exercise on an AVR microcontroller in C using the avr-gcc toolchain. However, I\'m wondering if there

6条回答
  •  别那么骄傲
    2020-11-21 05:33

    Try Boost::Spirit. It's a header-only library which you can drop in and build a very fast, clean parser completely in C++. Overloaded operators in C++ are used instead of a special grammar file.

提交回复
热议问题