Safe Haskell | None |
---|
A parser for reading SGF files.
- parseString :: String -> Either String Collection
- parseFile :: String -> IO (Either String Collection)
- parseSubtree :: RootInfo -> String -> Either String Node
- propertyParser :: Parser Property
Documentation
parseString :: String -> Either String CollectionSource
Parses a string in SGF format. Returns an error string if parsing fails.
parseFile :: String -> IO (Either String Collection)Source
Parses a file in SGF format. Returns an error string if parsing fails.
parseSubtree :: RootInfo -> String -> Either String NodeSource
Parses a node as part of an existing game tree, from textual SGF
"GameTree" syntax. The RootInfo
is needed to supply necessary
information from the existing game tree.
propertyParser :: Parser PropertySource