The LAP library: Lexeme

Derived from: none

Declared in: Lexeme.h


Overview

Well, there's nothing much to say about the Lexeme. It is pretty self-explanatory. Anyway, I can say that this class stores information about a... Lexeme! That is, the lexeme itself and its token.
That's it...


Constructor and D estructor


Lexeme()

 
      Lexeme(const char* String, uint32 Token)

Creates a new lexemes whose "name" is given by String, and whose token is given by Token.


~Lexeme()

 
      ~Lexeme(void) 

Absolutely nothing is done in here.


Member Functions


GetName()

 
      const char* GetName()

Returns the "name" of the lexeme. Strictly speaking, I'd rather say that it returns the lexeme itself.


GetToken()

 
      uint32 GetToken()

Returns the token associated with the lexeme.


The LAP library, V0.7, November 3rd 1997, First public release