Add support for empty nodes (e.g. "foo { }").
Replace error print on parse error with throwing ParseError exception
initialized with token value and line number.