/*****************************************************************************/ /* This file defines the global variables */ /*****************************************************************************/ #ifndef GLOBAL_H #define GLOBAL_H #include "basic.h" static struct List *reserved_words;/* linked list for reserved words*/ static struct List *operators;/* linked list for operators */ static struct List *punctuations;/* linked list for punctuations */ static struct List *white_space;/* linked list for white space */ static int flag_single_quote; /* working flag for characters */ static int flag_double_quote; /* working flag for strings */ static int flag_number; /* working flag for numbers */ static int flag_operator; /* working flag for operators */ static int flag_letter; /* working flag for lexical letters */ static int flag_comment; /* working flag for comments */ static char buffer[100]; /* working buffer for letters */ static int position; /* pointer of the last element in the buffer */ static int counter_string, counter_char, counter_identifier;/* counter for statistics of strings, characters, identifiers, respectively */ static int counter_number, counter_comment; /* counter for numbers, white spaces, comments, respectively */ #endif