This is recreation of arcsecond parser combinator library elements
Parser combinators is an approach to parsing where you build a complex parser by combining simple parsers (and combinations of simple parsers. And so on recursively. This little thing can parse strings, numbers, buffers (typed arrays). It can parse recursive expressions using lazy evaluations, deciding which parser to use in runtime.
Low Level Javascript subreddit was used as a source of information