Main Page | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Globals

Ars::ExprInt Class Reference

#include <exprint.h>

Inheritance diagram for Ars::ExprInt:

Inheritance graph
[legend]
Collaboration diagram for Ars::ExprInt:

Collaboration graph
[legend]

Public Member Functions

 ExprInt (const string &aBuffer)
virtual const char atSr (const int ati, const int atj)
virtual const int EofId (void) const
virtual const int IdentifierId (void) const
virtual const int NumberId (void) const
 ExprInt (const string &aBuffer)
virtual const char atSr (const int ati, const int atj)
virtual const int EofId (void) const
virtual const int IdentifierId (void) const
virtual const int NumberId (void) const

Static Private Attributes

const char sr [10][10]

Constructor & Destructor Documentation

Ars::ExprInt::ExprInt const string &  aBuffer  ) 
 

Initializes the lexical symbol

Definition at line 32 of file exprint.cpp.

References Lexer::symbol.

00033 : Lexer( aBuffer )
00034 {
00036         symbol.insert( std::make_pair( string( "$" ) , 8) );
00037         symbol.insert( std::make_pair( string( "(" ) , 6) );
00038         symbol.insert( std::make_pair( string( ")" ) , 7) );
00039         symbol.insert( std::make_pair( string( "|" ) , 4) );
00040         symbol.insert( std::make_pair( string( "+" ) , 0) );
00041         symbol.insert( std::make_pair( string( "-" ) , 1) );
00042         symbol.insert( std::make_pair( string( "/" ) , 3) );
00043         symbol.insert( std::make_pair( string( "*" ) , 2) );
00044         symbol.insert( std::make_pair( string( "Id" ) , 5) );
00045 
00046         symbol.insert( std::make_pair( string( "Val" ) , 9) );
00047 
00048 
00049 }

Ars::ExprInt::ExprInt const string &  aBuffer  ) 
 


Member Function Documentation

virtual const char Ars::ExprInt::atSr const int  ati,
const int  atj
[inline, virtual]
 

Implements Lexer.

Definition at line 15 of file inc/ars/exprint.h.

References sr.

00015 {       return sr[ati][atj];    }

virtual const char Ars::ExprInt::atSr const int  ati,
const int  atj
[inline, virtual]
 

Implements Lexer.

Definition at line 15 of file ars/exprint.h.

References sr.

00015 {       return sr[ati][atj];    }

virtual const int Ars::ExprInt::EofId void   )  const [virtual]
 

Implements Lexer.

const int Ars::ExprInt::EofId void   )  const [virtual]
 

Implements Lexer.

Definition at line 50 of file exprint.cpp.

00051 {
00052         return 8;
00053 }

virtual const int Ars::ExprInt::IdentifierId void   )  const [virtual]
 

Implements Lexer.

const int Ars::ExprInt::IdentifierId void   )  const [virtual]
 

Implements Lexer.

Definition at line 55 of file exprint.cpp.

00056 {
00057         return 5;
00058 }

virtual const int Ars::ExprInt::NumberId void   )  const [virtual]
 

Implements Lexer.

const int Ars::ExprInt::NumberId void   )  const [virtual]
 

Implements Lexer.

Definition at line 60 of file exprint.cpp.

00061 {
00062         return 9;
00063 }


Field Documentation

const char Ars::ExprInt::sr [static, private]
 

Initial value:

        
{       
                {       '>' , '>' , '<' , '<' , '>' , '<' , '<' , '>' , '>'     , '<' } ,
                {       '>' , '>' , '<' , '<' , '>' , '<' , '<' , '>' , '>'     , '<' } ,
                {       '>' , '>' , '>' , '>' , '>' , '<' , '<' , '>' , '>'     , '<' } ,
                {       '>' , '>' , '>' , '>' , '>' , '<' , '<' , '>' , '>'     , '<' } ,
                {       '>' , '>' , '<' , '<' , '>' , '<' , '<' , '>' , '>'     , '<' } ,
                {       '>' , '>' , '>' , '>' , '>' ,   ,   , '>' , '>' ,   } ,
                {       '<' , '<' , '<' , '<' , '<' , '<' , '<' , '=' , '>'     , '<' } ,
                {       '>' , '>' , '>' , '>' , '>' ,   ,   , '>' , '>' ,   } ,
                {       '<' , '<' , '<' , '<' , '<' , '<' , '<' ,   , '$'       , '<' } ,
                {       '>' , '>' , '>' , '>' , '>' ,   ,   , '>' , '>' ,   } 
}

Definition at line 8 of file inc/ars/exprint.h.

Referenced by atSr().


The documentation for this class was generated from the following files:
Generated on Fri Dec 5 04:06:43 2003 for Borqueror by doxygen 1.3.3