Main Page   Class Hierarchy   Compound List   File List   Header Files   Compound Members   File Members  

Token Class Reference

#include <scanner.h>

Class diagram for Token:

ResourceObj VMObj

List of all members.

Public Members

enum  TokenType { LAST_CHAR, INTEGER, FLOAT, STRING, COMMENT, SELF_TOKEN, RESEND_TOKEN, NAME, PRIMNAME, OPERATOR, PRIMKEYWORD, KEYWORD, CAPKEYWORD, ARG, DELEGATE, ARROW, ANNOTATION_START, ANNOTATION_END, ACCEPT, ERROR_TOKEN }
 Token (TokenType t, fint l, fint c, char* ss)
 Token (TokenType t, char* ss, int32 i, fint l, fint c)
 Token (TokenType t, float f, fint l, fint c, char* ss)
 Token (TokenType t, String* s, fint l, fint c, char* ss)
void print ()
TokenType type
fint line
fint column
char* sourceStart
int32 integer
float floating
Stringstring

Detailed Description


Member Enumeration Documentation

enum Token::TokenType

Enumeration values:
LAST_CHAR  
INTEGER  
FLOAT  
STRING  
COMMENT  
SELF_TOKEN  
RESEND_TOKEN  
NAME  
PRIMNAME  
OPERATOR  
PRIMKEYWORD  
KEYWORD  
CAPKEYWORD  
ARG  
DELEGATE  
ARROW  
ANNOTATION_START  
ANNOTATION_END  
ACCEPT  
ERROR_TOKEN  

Member Function Documentation

Token::Token (TokenType t, fint l, fint c, char * ss) [inline]

Token::Token (TokenType t, char * ss, int32 i, fint l, fint c) [inline]

Token::Token (TokenType t, float f, fint l, fint c, char * ss) [inline]

Token::Token (TokenType t, String * s, fint l, fint c, char * ss) [inline]

void Token::print () [virtual]

Reimplemented from VMObj.


Member Data Documentation

TokenType Token::type

int32 Token::integer

float Token::floating

String* Token::string

fint Token::line

fint Token::column

char* Token::sourceStart


The documentation for this class was generated from the following files:
Generated at Tue Jun 27 12:10:50 2000 for SelfVM by doxygen 1.0.0 written by Dimitri van Heesch, © 1997-1999