Closed amanjpro closed 2 years ago
@amanjpro after reviewing the issue, it appears that the previous code only handles comments with spaces. {-4.52/9 0.006s}
wouldn't be parsed correctly but { -4.52/9 0.006s }
would. Clearly the more general case is "everything inside the curly brackets". Your solution works but is a bit of a hack on top of my less general solution so I will take another crack at it. Thanks for spotting this.
I agree it's a hack, I only did it to unblock myself for my engine... I appreciate a cleaner solution :)
I love this library and will soon use it for my other projects ;)
Reading this PGN:
Will result in this error: