[WIP] very preliminary parsers

Note that there are no tests, this is a sketch of an interface.