dominicprice / endplay

A suite of tools for generation and analysis of bridge deals. Read the documentation at https://endplay.readthedocs.io
MIT License
22 stars 5 forks source link

Parsing a PBN-file with comments #25

Open ThorvaldAagaard opened 1 year ago

ThorvaldAagaard commented 1 year ago

Trying to parse a PBN-file from the Bridge Monitor I got this error

OK: There was an issue decoding the PBN file.
Error message: Expected a tag
Current line: {PAR of the deal: 3H  = played by North: 140 points}
Line number: 18

In https://www.tistis.nl/pbn/pbn_v20.txt section 3.8 it is explained: image

dominicprice commented 1 year ago

Hi, Yeah, the problem was with lines which contain only comments. I've added a fix and created a test.

I'm on the verge of releasing v0.5 which is quite a bit refactor, so this will just make it in! Expecting to release tomorrow assuming all the packaging tests pass.

Dom