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

Print user defined token type while pretty printing #135

Closed uucidl closed 8 years ago

uucidl commented 8 years ago

The pretty printing format chosen is USER:token name

We use the registry function h_get_token_type_name which returns 0 when no name has been defined. This will print (null) as a token name.

thequux commented 8 years ago

Thanks! This will make it much easier to debug parsers in the future.