| Name | Modified | Size | Downloads / 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
Resultinstead of aserror.ParserFailed- To get out the result, you now have to unwrap the
valueunion, which is eitherok: Torerr
- To get out the result, you now have to unwrap the
Resultnow also contains anindexinstead ofrestwhich 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.toStructto wrap a single valueTin a struct with one field of typeT(struct { field: T })