Main Page   Alphabetical List   Compound List   File List   Compound Members   File Members  

token.h File Reference

Go to the source code of this file.

Compounds

struct  Token

Defines

#define MAX_TOKEN   100

Enumerations

enum  Tokens {
  TIdentifier, TStringLiteral, TNumericLiteral, TFloatLiteral,
  TDataType, TLeftBracket, TRightBracket, TLeftBrace,
  TRightBrace, TAdd, TSub, TDiv,
  TMul
}

Functions

int tokenInit (void)
int tokenClose (void)
int tokenize (void)
int tokenGet (void)
TokentokenNew (void)
int tokenDelete (Token *delTok)
int tokenAdd (Token *add, Token *where)
int tokenClear (void)


Define Documentation

#define MAX_TOKEN   100
 

Maximum number of tokens. The token engine cannot evaluate above this many tokens/line (unless a linked list system is used).


Enumeration Type Documentation

enum Tokens
 

Token enum. Contains values for all the possible tokens from the InCode syntax.

Enumeration values:
TIdentifier  An Identifier, could be variable, function or object
TStringLiteral  A string literal (encased in quotes)
TNumericLiteral  A numeric literal (of any base, specified in 'size')
TFloatLiteral  A floating point literal (of any size, specified in 'size')
TDataType  A datatype indentifier (char, word, dword, etc)
TLeftBracket  formatting character (
TRightBracket  formatting character )
TLeftBrace  formatting character {
TRightBrace  formatting character }
TAdd  operator+
TSub  operator-
TDiv  operator/
TMul  operator *


Function Documentation

int tokenAdd Token   add,
Token   where
 

int tokenClear void   
 

int tokenClose void   
 

int tokenDelete Token   delTok
 

int tokenGet void   
 

int tokenInit void   
 

int tokenize void   
 

Token* tokenNew void   
 


Generated on Sun Mar 3 15:36:27 2002 by doxygen1.2.13.1 written by Dimitri van Heesch, © 1997-2001