Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: Writting a PGN parser. Need advices.

Author: Christos Gitsis

Date: 16:11:55 06/21/05

Go up one level in this thread


On June 21, 2005 at 15:56:04, Mathieu Pagé wrote:

>On June 21, 2005 at 15:35:56, Andreas Rueckert wrote:
>
>>Did you look at the PGN parser of the JavaChess project
>>(http://www.java-chess.de). It would be great to find more contributors for the
>>PGN grammar, so anyone could write his own parser.
>
>No, i do not, but I will.
>
>However, I do not plan to use a grammar, what I'd like to do is write an
>"hardcoded" parser. And I want it to be in C or C++.
>
>Mathieu Pagé

I admit that I am not an experienced programmer, but just out of curiosity:

Is it not a lot easier to use tools like flex/bison to help you make the parser,
and add any C/C++ code that you want in there?

What is the advantage of writing a "hardcoded" parser, as you say?



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.