Currently Chomp's module-tree is a bit deep for what it does. Would be more ergonomic with a flatter tree.
The most common types should be in the crate root:
chomp::Input
chomp::ParseResult (Parser in the case of 2.0)
chomp::Buffer <- Rename
Should be renamed, conflicts with chomp::buffer as well as chomp::buffer::Buffer and is more like a window into the token-stream, it is not guaranteed to be a buffer or slice. Maybe Window?
Currently Chomp's module-tree is a bit deep for what it does. Would be more ergonomic with a flatter tree.
The most common types should be in the crate root:
chomp::Input
chomp::ParseResult
(Parser
in the case of2.0
)chomp::Buffer
<- RenameShould be renamed, conflicts with
chomp::buffer
as well aschomp::buffer::Buffer
and is more like a window into the token-stream, it is not guaranteed to be a buffer or slice. MaybeWindow
?