Gambit Parser
A rust parser for gambit extensive form game
(.efg) files.
Usage
use ExtensiveFormGame;
use File;
use Read;
let mut buffer = Stringnew;
open?.read_to_string?;
let parsed: = buffer.as_str.try_into?;
Remarks
Gambit's reader duplicates runs of backslashes when reading a quoted label; this parser does not reproduce that bug.
To Do
Ultimately this represents a data model that could be modified and serialized,
but that's not implemented yet. The current version keeps a reference to the
underlying file bytes, to implement a full data model there should be an owned
version of the ExtensiveFormGame that supports full serialization and
modification.