Pgn tool needed.

Discussion of anything and everything relating to chess playing software and machines.

Moderator: Ras

User avatar
Matthias Gemuh
Posts: 3245
Joined: Thu Mar 09, 2006 9:10 am

Pgn tool needed.

Post by Matthias Gemuh »

A chess friend just wrote me:

"I would like a command line driven program (I am going to use it with Pradu's WBTM and Winboard) which can read a pgn file and construct a crosstable. Text and htm output would be good".

Can this guy be helped ?

Matthias.
My engine was quite strong till I added knowledge to it.
http://www.chess.hylogic.de
Volker Pittlik
Posts: 628
Joined: Wed Mar 08, 2006 9:10 pm
Location: Murten / Morat, Switzerland
Full name: Volker Pittlik

Re: Pgn tool needed.

Post by Volker Pittlik »

Matthias Gemuh wrote:...
Can this guy be helped ?

Matthias.
I'd suggest bayeselo.

vp
MirceaH
Posts: 48
Joined: Mon Mar 13, 2006 4:21 pm

Re: Pgn tool needed.

Post by MirceaH »

User avatar
Matthias Gemuh
Posts: 3245
Joined: Thu Mar 09, 2006 9:10 am

Thanks

Post by Matthias Gemuh »

Thanks, Volker and Mircea.


Matthias.
My engine was quite strong till I added knowledge to it.
http://www.chess.hylogic.de
BBauer
Posts: 658
Joined: Wed Mar 08, 2006 8:58 pm

Re: Pgn tool needed.

Post by BBauer »

I get some errors when compiling bayeselo

g++ -o bayeselo -Wall elomain.cpp
In file included from elomain.cpp:9:
pgnlex.cpp: In member function ‘int CPGNLex::NextChar()’:
pgnlex.cpp:92: error: ‘EOF’ was not declared in this scope
pgnlex.cpp: In member function ‘int CPGNLex::ReadNextToken()’:
pgnlex.cpp:109: error: ‘EOF’ was not declared in this scope
pgnlex.cpp:156: error: ‘EOF’ cannot appear in a constant-expression
pgnlex.cpp:188: error: ‘EOF’ cannot appear in a constant-expression
In file included from elomain.cpp:15:
move.cpp: In member function ‘int CMove::ParseString(const char*)’:
move.cpp:186: warning: suggest explicit braces to avoid ambiguous ‘else’

any ideas?

Bernhard
User avatar
Jim Ablett
Posts: 2267
Joined: Fri Jul 14, 2006 7:56 am
Location: London, England
Full name: Jim Ablett

Re: Pgn tool needed.

Post by Jim Ablett »

BBauer wrote:I get some errors when compiling bayeselo

g++ -o bayeselo -Wall elomain.cpp
In file included from elomain.cpp:9:
pgnlex.cpp: In member function ‘int CPGNLex::NextChar()’:
pgnlex.cpp:92: error: ‘EOF’ was not declared in this scope
pgnlex.cpp: In member function ‘int CPGNLex::ReadNextToken()’:
pgnlex.cpp:109: error: ‘EOF’ was not declared in this scope
pgnlex.cpp:156: error: ‘EOF’ cannot appear in a constant-expression
pgnlex.cpp:188: error: ‘EOF’ cannot appear in a constant-expression
In file included from elomain.cpp:15:
move.cpp: In member function ‘int CMove::ParseString(const char*)’:
move.cpp:186: warning: suggest explicit braces to avoid ambiguous ‘else’

any ideas?

Bernhard
Hi Bernhard,

Add

Code: Select all

#include <stdio.h> 
to

Code: Select all

pgnlex.cpp
Jim.
BBauer
Posts: 658
Joined: Wed Mar 08, 2006 8:58 pm

Re: Pgn tool needed.

Post by BBauer »

Thank you.
That helped.
regards
Bernhard