Back to index

courier  0.68.2
Public Member Functions | Private Member Functions | Private Attributes
Lexer Class Reference

#include <lexer.h>

Collaboration diagram for Lexer:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 Lexer ()
 ~Lexer ()
int Open (const char *)
void token (Token &)
void errmsg (const char *)
void errmsg (unsigned long, const char *)
int Linenum ()

Private Member Functions

int curchar ()
int nextchar ()
void error (const char *)
void token2 (Token &)

Private Attributes

Mio file
int linenum
Buffer filename
Token::tokentype lasttokentype

Detailed Description

Definition at line 26 of file lexer.h.


Constructor & Destructor Documentation

Lexer::Lexer ( ) [inline]

Definition at line 48 of file lexer.h.

{}
Lexer::~Lexer ( ) [inline]

Definition at line 49 of file lexer.h.

{}

Member Function Documentation

int Lexer::curchar ( ) [inline, private]

Definition at line 36 of file lexer.h.

{      return (file.peek()); }

Here is the call graph for this function:

void Lexer::errmsg ( const char *  )
void Lexer::errmsg ( unsigned  long,
const char *   
)
void Lexer::error ( const char *  ) [private]
int Lexer::Linenum ( ) [inline]

Definition at line 59 of file lexer.h.

{ return (linenum); }
int Lexer::nextchar ( ) [inline, private]

Definition at line 40 of file lexer.h.

                         { int c=file.get();

                            if (c == '\n')       ++linenum;
                            return (c);
                     }

Here is the call graph for this function:

int Lexer::Open ( const char *  )
void Lexer::token ( Token )
void Lexer::token2 ( Token ) [private]

Member Data Documentation

Mio Lexer::file [private]

Definition at line 28 of file lexer.h.

Definition at line 30 of file lexer.h.

Definition at line 31 of file lexer.h.

int Lexer::linenum [private]

Definition at line 29 of file lexer.h.


The documentation for this class was generated from the following file: