update the grammar to support sub-trees

The EBNF definition in http://www.red-bean.com/sgf/sgf4.html#ebnf-def