Hejsil / mecha

A parser combinator library for Zig
MIT License
473 stars 21 forks source link

Enable toStruct to accept a single value #72

Closed joelreymont closed 3 weeks ago

joelreymont commented 3 weeks ago

Enable toStruct to assign single values to single-field structures.

Hejsil commented 3 weeks ago

Thanks for the initial work. I decided to change the implementation a little and manually merge it here: 08ce69d

joelreymont commented 3 weeks ago

Thanks cleaner, thank you!