stchang / parsack

A basic Parsec-like monadic parser combinator library implementation in Racket.
MIT License
50 stars 10 forks source link

User state #30

Closed greghendershott closed 10 years ago

greghendershott commented 10 years ago

Add equivalents of Parsec setState and getState, enabling a user to thread bits of state through parsers. This is necessary in situations where someone might use Racket parameters, which aren't compatible with Parsack's use of lazy and force. As a convenience, also add withState syntax, which is the analog of parameterize.