#ifndef XTOKENH
#define XTOKENH
#define  EOF_CHAR '\x7f'
typedef enum {
               NOTOKEN,       
               IDENTIFIER,
               NUMBER,
               AND,
               OR,
               FOR,
               WHERE,
               SELECT,
               FROM,
               LIST_COMMAND,
               CREATE,
               ALTER,
               DBFTABLE,
               MODIFY,
               VIEW,
               LPAREN,
               RPAREN,
               EQ,
               NOT,
               CHAR_TYPE,
               ON,
               AS, 
               END_OF_FILE,
               PLUS,
               MINUS,
               SEMICOLON,
               TO,
               ENDOFSTRING,
               COMMA,
               RANGLE,
               LANGLE,
               SINGLEQUOTE,
               DOT,
			   ATSIGN,
               LBRACKET,
               RBRACKET,
               INDEXCOMMAND,
               LT,
               GT,
               NE,
               LE,
               GE,
               STAR,
               SLASH,
               DIV, 
               MOD, 
               STRING,
               UNARYMINUS,
               ASSIGN,
               DATE_TYPE,
               TIME_TYPE,
               BACKSLASH,
               DELETED,
               BOTH,
               DELETE_TYPE,
               INSERT,
               POINTER,
               ALL,
               LISTBUFFER,
               SQLUSECOMMAND,
               SETCOMMAND,
               TOPREC,
               NEXTREC,
               PREVREC,
               BOTREC,
               SORTCOMMAND,
               BY,
               UNIQUE,
               //COUNTCOMMAND,
               CLOSEALL,
               CLOSE,
               REMOVE,
               //COUNT,
               REPLACE,
               UNDELETE,
               SETDRIVE,
               SETERROR,
               RESET,
               SKIPCOMMAND,                          
               ORDER,
               INTO,
               GROUP,
               HAVING,
               ASCENDING,
               DECENDING,
               AVGFUNC,      
               SUMFUNC,      
               MINFUNC,      
               MAXFUNC,      
               COUNTFUNC,
               DISTINCT,
               WITH,
               GOTO,
               REINDEX,
               COLON,
               ZAP,
               PACK,
               LENGTHFUNC,
               WITHIN,
               UPDATE,
               IDENTIFIER_DOT_IDENTIFIER,
               IDENTIFIER_DOT_STAR,
               STARFIELD,
               NULLVALUE,               
               USERFUNC,
               DATETOCHAR,
               CHARTODATE,
               DROP,
               RECOVER,
               MAKE,
               STRING_DOT_IDENTIFIER,
               STRING_DOT_STAR,
               IN_TYPE,
               NOTIN,
               NOTWITHIN,
               INSET,
               NOTINSET,
               WITHINSET,
               NOTWITHINSET,
               NOTNULL,
               BETWEENSET,
               NOTBETWEENSET,
               BETWEEN,
               NOTBETWEEN,
               RECORDNUMBER,
               STRING_DOT_RECORDNUMBER,
               IDENTIFIER_DOT_RECORDNUMBER,
               RELDATABASE,
               COMMIT,
               ROLLBACK,
               INCLUDETABLE,
               SQLLOGIN,
               SQLLOGOUT,
               SQLREMOTE,
               SQLCONNECT,
               SQLDISCONNECT,
               SQLGRANT,
               SQLREVOKE,
               SQLEXPANDDATABASE,
               SQLLOCK,
               SQLUNLOCK,
               SQLADD,
               SQLCHANGEUSERSTAT,
               SQLDESCRIBE,
               SQLSHOW,
               SQLUSER,
			   //SQLGROUP,
			   SQLDEBUG,
			   OFF,
			   ROWID,
			   SUPERUSER
              }TOKENCODE;

int GetPartialCount(INTERNET_SQL_OBJECT *obj,TOKENCODE t );
void MakeString(INTERNET_SQL_OBJECT *,char *sqlcommand);
char Synchronize(INTERNET_SQL_OBJECT *,
				 TOKENCODE *list1,
                 TOKENCODE *list2,
                 TOKENCODE *list3
                 );

#endif

