-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Run `cargo fmt` * Change parse internals to bytes rather than chars This change is straightforward because the DIMACS format is ASCII-only. * Added an std::io::Read-based parser Panics on IO errors Why? Because the alternatives are: * `collect` the first IO error -- requiring us to pull the whole string into memory * catch those IO errors deep in the lexer, and bubble them up as a special kind of `ParseError`. Since we'll generally be reading form files, read errors won't typically happen, so I figure its better to just panic, since a use wouldn't want to recover any ways. * Add tests for read_dimacs
- Loading branch information
1 parent
fc12ab4
commit 90915a2
Showing
5 changed files
with
1,048 additions
and
860 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.