UpstandingHackers / hammer

Parser combinators for binary formats, in C. Yes, in C. What? Don't look at me like that.
GNU General Public License v2.0
430 stars 40 forks source link

Support custom pretty-printers with USER token types #195

Open pesco opened 4 years ago

pesco commented 4 years ago

This adds an argument to h_allocate_token_new().

Also includes a rework of h_pprint in general. I condensed its output to be more readable and added a convenience wrapper h_pprintln.

Try the included example!