Main Page   Data Structures   File List   Data Fields   Globals  

token.h

Go to the documentation of this file.
00001 /*
00002  * InCode - [ token.h ]
00003  * (c) 2002, J. Weeks
00004  * jweeks@mailandnews.com
00005  *
00006  */
00007 
00008 /***************************************************************************
00009  *                                                                         *
00010  *   This program is free software; you can redistribute it and/or modify  *
00011  *   it under the terms of the GNU General Public License as published by  *
00012  *   the Free Software Foundation; either version 2 of the License, or     *
00013  *   (at your option) any later version.                                   *
00014  *                                                                         *
00015  ***************************************************************************/
00016 
00017 #ifndef __TOKEN_H__
00018 #define __TOKEN_H__
00019 
00025 #define MAX_TOKEN       100
00026 
00031 typedef struct _Token {
00032   char name[32];                                
00033   long type;                                            
00034   long size;                                            
00035   struct _Token *next;  
00040 } Token;
00041 
00046 enum Tokens {
00047   TIdentifier,                  
00048   TStringLiteral,               
00049   TNumericLiteral,      
00050   TFloatLiteral,                
00051   TDataType,                            
00052   TLeftBracket,                 
00053   TRightBracket,                
00054   TLeftBrace,                           
00055   TRightBrace,                  
00056   TAdd,                                                 
00057   TSub,                                                 
00058   TDiv,                                                 
00059   TMul                                                  
00060 };
00061 
00062 int tokenInit(void);
00063 int tokenClose(void);
00064 int tokenize(void);
00065 int tokenGet(Token *tok);
00066 int tokenNew(Token *newTok);
00067 int tokenDelete(Token *delTok);
00068 int tokenAdd(Token *add, Token *where);
00069 int tokenClear(void);
00070 
00071 #endif

Generated on Thu Feb 14 09:15:11 2002 for InCode by doxygen1.2.13.1 written by Dimitri van Heesch, © 1997-2001