This is an antlr4-grammar for the Smart Game Format
which is also called Smart Go Format
.
Sgf is a context dependend format, which means a standard parser is of limited use. The format however is pretty simple and this parser gives a very good starting point.
All properties from the list of property are implemented and the official example parses without problems.
Unknown properties are supported and will show up as privateProp
-nodes.