Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add sepby1 combinator #165

Merged
merged 1 commit into from
Aug 9, 2023
Merged

Commits on Aug 8, 2023

  1. feat: add sepby1 combinator

    `sepby1` is a common reusable combinator in Haskell Parsec.
    
    This adds `mpc_sepby1(mpc_fold_t f, mpc_parser_t *sep, mpc_parser_t *a)` according to Haskell's implementation:
    
    https://hackage.haskell.org/package/parsec-3.1.16.1/docs/src/Text.Parsec.Combinator.html#sepBy1
    
    Reuses existing `mpc_and`, `mpc_many`, and `mpcf_snd_free`.
    steve-chavez committed Aug 8, 2023
    Configuration menu
    Copy the full SHA
    c24e27f View commit details
    Browse the repository at this point in the history