dashbitco / nimble_parsec

A simple and fast library for text-based parser combinators

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

No combinator for the beginning of a string

jackalcooper opened this issue · comments

  • In PEG

^: Anchor: Matches at the start of the input. No character is consumed.
use case: https://github.com/ziglang/zig-spec/blob/master/grammar/grammar.y#L401

  • there is eos in NimbleParsec. It would be nice there is a correspondent combinator to match the beginning of a string