Download Latest Version 0.11.0 source code.tar.gz (19.0 kB)
Email in envelope

Get an email when there's a new version of Mecha

Home / 0.10.0
Name Modified Size InfoDownloads / Week
Parent folder
0.10.0 source code.tar.gz 2025-03-05 19.0 kB
0.10.0 source code.zip 2025-03-05 23.0 kB
README.md 2025-03-05 728 Bytes
Totals: 3 Items   42.7 kB 0

mecha release 0.10.0 which compiles and works for zig 0.14.0

Features

  • Add mecha.unionInit

Changes

  • The result of parsers have changed
  • Whether a parser succeeded in parsing the string is now returned in Result instead of as error.ParserFailed
    • To get out the result, you now have to unwrap the value union, which is either ok: T or err
  • Result now also contains an index instead of rest which contains the amount of progress made into the string
    • For success, this is the end of how much was parsed
    • For error, this is where parsing failed
  • Allow mecha.toStruct to wrap a single value T in a struct with one field of type T (struct { field: T })
Source: README.md, updated 2025-03-05