This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Parser generator for embedded system

my cortex M7 has to parse SDP packets, for which I have the grammar.
I can’t use flex/bison because I don’t have the libraries (e.g., libfl.a) compiled for cortex M. Is this correct? Are there ways to use them anyway?
What other parser generator could I use?
The constraints for the generated code are:

  • must generate C code
  • possibly shouldn’t use dynamic memory, because I haven’t implemented the standard malloc(). I have the pvPortMalloc()
  • possibly do not use I/O functions. I have my own nonstandard implementation that I call qprintf()

I don’t know ANTLR, would that be okay?

best regards
Max