-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix enumeration and foreign soar vertex reading
Re-write the `readVertexSafe` method to use the `ReaderUtils` methods, since they seem more robust than string splitting. This brings the parsing of ENUMERATION and FOREIGN back in line with the older `readVertex` method. I still see several issues, though: * The line was used for testing ENUMERATION parsing is clearly malformed; each enum val should start and end with a "|", but the values appear only to be joined and then given one extra at the head and tail of the list. Did that line get written by V-S? If so, then how? * We can't handle escaped vertical bars * I'm certain there are more potential exceptions that we are not handling. I've marked one with a TODO. The parsing really needs one character of lookahead to handle `\r` properly.
- Loading branch information
1 parent
ebe1724
commit 4d8ded9
Showing
4 changed files
with
166 additions
and
179 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
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
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.