diff options
| author | Teddy Wing | 2018-11-01 04:07:38 +0100 |
|---|---|---|
| committer | Teddy Wing | 2018-11-01 04:20:39 +0100 |
| commit | 13e90c090923a209e5e26fb3e609d5d12f737f53 (patch) | |
| tree | f0338374e7bfe9f7f70dde86fda067b19215c728 /moder.c | |
| parent | b69f46ced56fb199c8cdb58742f8babb5d953988 (diff) | |
| download | dome-key-map-13e90c090923a209e5e26fb3e609d5d12f737f53.tar.bz2 | |
parser: Change `Map` to a tuple type alias
Investigating why I'm not getting error messages in my parsed result.
The layer where I stop getting them is when parsing to a
`MapCollection`.
Split the list of `map()` parser out from `map_collection()` to get more
information. Turns out that the new `maps()` parser is now where parse
errors get discarded.
In an attempt to get the errors to appear, I tried to replicate the
structure of Combine's INI example parser:
https://github.com/Marwes/combine/blob/921202a018000041c9d3e8b12b7c1a53d0252f67/examples/ini.rs
That program makes a `property()` parser which outputs a 2-tuple of
`(String, String)`, and a `properties()` parser which outputs a
`HashMap<String, String>`, using the values in the tuple to construct
the HashMap.
Unfortunately, this change didn't solve the problem of the non-bubbling
error messages. Unsure about whether or not to keep this change.
Diffstat (limited to 'moder.c')
0 files changed, 0 insertions, 0 deletions
