Author: Jon Dart
Date: 12:14:44 10/18/00
Go up one level in this thread
Steven Edwards put out a toolkit for dealing with chess notation -
e.g. Crafty uses it for parsing EPD. It looks to me like it has
some support for PGN input-output also. The code is big and not
very scrutable but may beat writing your own.
Note that parsing straight PGN (Even ill-formed examples) is not
terribly hard but handling PGN with subvariations and
annotations is a little harder. Not clear if you want to do go this
far unless you are writing a sophisticated chess viewer. 90% or more
of the PGN out there is unannotated.
--Jon
On October 18, 2000 at 10:51:25, Steve Maughan wrote:
>I'm writing a PGN / EPD parser for my program. I've managed to find the PGN
>standard on the Internet and implemented most of it.
>
>I'm hoping to make my parser as robust as possible so it would be great if it
>could cope with the situation when other programs produce less than standard PGN
>output e.g. using o-o ('zero'-'zero') instead of O-O?. My question is does
>anyone know of a document that discussed how people have alterned the PGN
>standard?
>
>Steve Maughan
This page took 0 seconds to execute
Last modified: Thu, 15 Apr 21 08:11:13 -0700
Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.