cleaned up old CVS left overs
[xboard.git] / parser.h
1 /*\r
2  * parser.h -- Interface to XBoard move parser\r
3  *\r
4  * Copyright 1991 by Digital Equipment Corporation, Maynard,\r
5  * Massachusetts.  Enhancements Copyright\r
6  * 1992-2001,2002,2003,2004,2005,2006,2007,2008,2009 Free Software\r
7  * Foundation, Inc.\r
8  *\r
9  * The following terms apply to Digital Equipment Corporation's copyright\r
10  * interest in XBoard:\r
11  * ------------------------------------------------------------------------\r
12  * All Rights Reserved\r
13  *\r
14  * Permission to use, copy, modify, and distribute this software and its\r
15  * documentation for any purpose and without fee is hereby granted,\r
16  * provided that the above copyright notice appear in all copies and that\r
17  * both that copyright notice and this permission notice appear in\r
18  * supporting documentation, and that the name of Digital not be\r
19  * used in advertising or publicity pertaining to distribution of the\r
20  * software without specific, written prior permission.\r
21  *\r
22  * DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING\r
23  * ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL\r
24  * DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR\r
25  * ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,\r
26  * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,\r
27  * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS\r
28  * SOFTWARE.\r
29  * ------------------------------------------------------------------------\r
30  *\r
31  * The following terms apply to the enhanced version of XBoard\r
32  * distributed by the Free Software Foundation:\r
33  * ------------------------------------------------------------------------\r
34  *\r
35  * GNU XBoard is free software: you can redistribute it and/or modify\r
36  * it under the terms of the GNU General Public License as published by\r
37  * the Free Software Foundation, either version 3 of the License, or (at\r
38  * your option) any later version.\r
39  *\r
40  * GNU XBoard is distributed in the hope that it will be useful, but\r
41  * WITHOUT ANY WARRANTY; without even the implied warranty of\r
42  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\r
43  * General Public License for more details.\r
44  *\r
45  * You should have received a copy of the GNU General Public License\r
46  * along with this program. If not, see http://www.gnu.org/licenses/.  *\r
47  *\r
48  *------------------------------------------------------------------------\r
49  ** See the file ChangeLog for a revision history.  */\r
50 \r
51 extern void yynewfile P((FILE *f));\r
52 extern void yynewstr P((char *s));\r
53 extern int yylex P((void));\r
54 extern ChessMove yylexstr P((int boardIndex, char *s));\r
55 extern char currentMoveString[];\r
56 extern int yyboardindex;\r
57 extern int yyskipmoves;  /* If TRUE, all moves are reported as AmbiguousMove\r
58                             instead of being disambiguated. */\r
59 extern char *yy_text;  /* Needed because yytext can be either a char[]\r
60                           or a (non-constant) char* */\r
61 extern int yyoffset P((void));\r
62 extern char initialRights[BOARD_SIZE];\r
63 extern char castlingRights[MAX_MOVES][BOARD_SIZE];\r