Scid  4.6.5
Macros | Typedefs | Functions | Variables
tokens.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define MAX_TOKEN   58;
 
#define TOKEN_isTag(x)   ((x) == TOKEN_Tag)
 
#define TOKEN_isResult(x)   (((x) >= 41) && ((x) <= 44))
 

Typedefs

typedef uint tokenT
 

Functions

bool TOKEN_isMove (tokenT token)
 
bool TOKEN_isPawnMove (tokenT token)
 

Variables

const tokenT TOKEN_EndOfInput = 0
 
const tokenT TOKEN_Invalid = 1
 
const tokenT TOKEN_MoveNum = 3
 
const tokenT TOKEN_Ignore = 4
 
const tokenT TOKEN_Move_Pawn = 5
 
const tokenT TOKEN_Move_Promote = 6
 
const tokenT TOKEN_Move_Piece = 7
 
const tokenT TOKEN_Move_Castle_King = 8
 
const tokenT TOKEN_Move_Castle_Queen = 9
 
const tokenT TOKEN_Move_Null = 10
 
const tokenT TOKEN_Tag = 20
 
const tokenT TOKEN_TagEnd = 21
 
const tokenT TOKEN_Result_White = 41
 
const tokenT TOKEN_Result_Black = 42
 
const tokenT TOKEN_Result_Draw = 43
 
const tokenT TOKEN_Result_Star = 44
 
const tokenT TOKEN_Nag = 51
 
const tokenT TOKEN_Suffix = 52
 
const tokenT TOKEN_Check = 53
 
const tokenT TOKEN_Mate = 54
 
const tokenT TOKEN_Comment = 55
 
const tokenT TOKEN_LineComment = 56
 
const tokenT TOKEN_VarStart = 57
 
const tokenT TOKEN_VarEnd = 58
 
const tokenT TOKEN_CommentEnd = 59
 

Macro Definition Documentation

#define MAX_TOKEN   58;

Definition at line 25 of file tokens.h.

#define TOKEN_isResult (   x)    (((x) >= 41) && ((x) <= 44))

Definition at line 65 of file tokens.h.

#define TOKEN_isTag (   x)    ((x) == TOKEN_Tag)

Definition at line 57 of file tokens.h.

Typedef Documentation

typedef uint tokenT

Definition at line 23 of file tokens.h.

Function Documentation

bool TOKEN_isMove ( tokenT  token)
inline

Definition at line 42 of file tokens.h.

bool TOKEN_isPawnMove ( tokenT  token)
inline

Definition at line 48 of file tokens.h.

Variable Documentation

const tokenT TOKEN_Check = 53

Definition at line 71 of file tokens.h.

const tokenT TOKEN_Comment = 55

Definition at line 73 of file tokens.h.

const tokenT TOKEN_CommentEnd = 59

Definition at line 77 of file tokens.h.

const tokenT TOKEN_EndOfInput = 0

Definition at line 28 of file tokens.h.

const tokenT TOKEN_Ignore = 4

Definition at line 31 of file tokens.h.

const tokenT TOKEN_Invalid = 1

Definition at line 29 of file tokens.h.

const tokenT TOKEN_LineComment = 56

Definition at line 74 of file tokens.h.

const tokenT TOKEN_Mate = 54

Definition at line 72 of file tokens.h.

const tokenT TOKEN_Move_Castle_King = 8

Definition at line 37 of file tokens.h.

const tokenT TOKEN_Move_Castle_Queen = 9

Definition at line 38 of file tokens.h.

const tokenT TOKEN_Move_Null = 10

Definition at line 39 of file tokens.h.

const tokenT TOKEN_Move_Pawn = 5

Definition at line 34 of file tokens.h.

const tokenT TOKEN_Move_Piece = 7

Definition at line 36 of file tokens.h.

const tokenT TOKEN_Move_Promote = 6

Definition at line 35 of file tokens.h.

const tokenT TOKEN_MoveNum = 3

Definition at line 30 of file tokens.h.

const tokenT TOKEN_Nag = 51

Definition at line 69 of file tokens.h.

const tokenT TOKEN_Result_Black = 42

Definition at line 62 of file tokens.h.

const tokenT TOKEN_Result_Draw = 43

Definition at line 63 of file tokens.h.

const tokenT TOKEN_Result_Star = 44

Definition at line 64 of file tokens.h.

const tokenT TOKEN_Result_White = 41

Definition at line 61 of file tokens.h.

const tokenT TOKEN_Suffix = 52

Definition at line 70 of file tokens.h.

const tokenT TOKEN_Tag = 20

Definition at line 55 of file tokens.h.

const tokenT TOKEN_TagEnd = 21

Definition at line 56 of file tokens.h.

const tokenT TOKEN_VarEnd = 58

Definition at line 76 of file tokens.h.

const tokenT TOKEN_VarStart = 57

Definition at line 75 of file tokens.h.