# Parser generator for embedded system

**URL:** <https://community.memfault.com/t/parser-generator-for-embedded-system/658>\
**Category:** General\
**Created:** [April 30, 2023, 8:39am UTC](https://community.memfault.com/t/parser-generator-for-embedded-system/658 "2023-04-30T08:39:39Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mastupristi](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.memfault.com/mastupristi/32/32_2.png) [@mastupristi](https://community.memfault.com/u/mastupristi)\
**Post date:** [April 30, 2023, 8:39am UTC](https://community.memfault.com/t/parser-generator-for-embedded-system/658/1 "2023-04-30T08:39:39Z")

</div>

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
