Main Page   Data Structures   File List   Data Fields   Globals  

token.c File Reference

#include <stdio.h>
#include <stdlib.h>
#include "token.h"
#include "input.h"

Go to the source code of this file.

Functions

int tokenInit (void)
 Initialize Token System. More...

int tokenClose (void)
 Close the Token sytem. More...

int tokenize (void)
int tokenGet (Token *tok)
int tokenNew (Token *newTok)
int tokenDelete (Token *delTok)

Variables

Token token


Function Documentation

int tokenClose void   
 

Close the Token sytem.

Removes any memory occupied by the token system, and releases any resources used.

Returns:
0 if okay, !0 on error.

Definition at line 50 of file token.c.

Referenced by main().

int tokenDelete Token   delTok
 

Definition at line 86 of file token.c.

int tokenGet Token   tok
 

Definition at line 67 of file token.c.

References inputChar(), _Token::name, and tokenNew().

int tokenInit void   
 

Initialize Token System.

Initializes the token linked list, and any other setup procedures.

Returns:
0 if okay, !0 on error.

Definition at line 38 of file token.c.

References _Token::next, and _Token::type.

Referenced by main().

int tokenize void   
 

Definition at line 55 of file token.c.

References _Token::name, tokenDelete(), and tokenGet().

Referenced by main().

int tokenNew Token   newTok
 

Definition at line 81 of file token.c.


Variable Documentation

Token token
 

Definition at line 31 of file token.c.


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