You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Trying to parse this with PGN raises the following error:
Whittle::UnconsumedInputError: Unmatched input "{...}\n1-0" on line 19
from /Users/greg/.rvm/gems/ruby-1.9.3-p362/gems/whittle-0.0.8/lib/whittle/parser.rb:251:in `block in lex'
from /Users/greg/.rvm/gems/ruby-1.9.3-p362/gems/whittle-0.0.8/lib/whittle/parser.rb:250:in `tap'
from /Users/greg/.rvm/gems/ruby-1.9.3-p362/gems/whittle-0.0.8/lib/whittle/parser.rb:250:in `lex'
from /Users/greg/.rvm/gems/ruby-1.9.3-p362/gems/whittle-0.0.8/lib/whittle/parser.rb:204:in `parse'
from /Users/greg/.rvm/gems/ruby-1.9.3-p362/gems/pgn-0.0.6/lib/pgn.rb:23:in `parse'
from (irb):5
from /Users/greg/.rvm/rubies/ruby-1.9.3-p362/bin/irb:16:in `<main>'
I think that "{...}" is meant to indicate an incomplete move log. Even though it doesn't appear in any PGN documentation that I can find. Not sure what the best policy in parsing is here, however the current result where I'm PGN crashes midway through parsing this archive of ~10,000 games and forces me to write code that splits up the games myself with a regex and iterates over the resulting strings in order to pass them one-by-one into PGN to rescue just the one that crashes is probably not the optimal situation.
The text was updated successfully, but these errors were encountered:
The following PGN appears in the http://chessgames.com archive of games played in 2014:
Trying to parse this with PGN raises the following error:
I think that "{...}" is meant to indicate an incomplete move log. Even though it doesn't appear in any PGN documentation that I can find. Not sure what the best policy in parsing is here, however the current result where I'm PGN crashes midway through parsing this archive of ~10,000 games and forces me to write code that splits up the games myself with a regex and iterates over the resulting strings in order to pass them one-by-one into PGN to rescue just the one that crashes is probably not the optimal situation.
The text was updated successfully, but these errors were encountered: