@maradydd I'm defining a mostly ABNF-like grammar for a cryptosystem, with the exception of length-prefixed netstrings. Is this dumb y/n?
-
-
@bascule Yup. Hammer has the h_length_value(const HParser* length, const HParser* value) combinator for that. The first arg is the ... -
-
-
-
-
-
-
- 2 more replies
New conversation -
-
-
@bascule ... that many times. -
@maradydd awesome! Sounds like exactly what I need -
@bascule https://github.com/UpstandingHackers/hammer … :) The docs are wanting, but there are examples. Packrat is the default backend, btw.
End of conversation
New conversation -
-
-
@bascule ... primitive parser to parse the length (e.g., h_uint8()) into an integer, and the second is whatever parser you want to apply ...Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.