#include <exprint.h>
Inheritance diagram for Ars::ExprInt:


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] |
|
|
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 } |
|
|
|
|
||||||||||||
|
Implements Lexer. Definition at line 15 of file inc/ars/exprint.h. References sr.
00015 { return sr[ati][atj]; }
|
|
||||||||||||
|
Implements Lexer. Definition at line 15 of file ars/exprint.h. References sr.
00015 { return sr[ati][atj]; }
|
|
|
Implements Lexer. |
|
|
Implements Lexer. Definition at line 50 of file exprint.cpp.
00051 {
00052 return 8;
00053 }
|
|
|
Implements Lexer. |
|
|
Implements Lexer. Definition at line 55 of file exprint.cpp.
00056 {
00057 return 5;
00058 }
|
|
|
Implements Lexer. |
|
|
Implements Lexer. Definition at line 60 of file exprint.cpp.
00061 {
00062 return 9;
00063 }
|
|
|
Initial value:
{
{ '>' , '>' , '<' , '<' , '>' , '<' , '<' , '>' , '>' , '<' } ,
{ '>' , '>' , '<' , '<' , '>' , '<' , '<' , '>' , '>' , '<' } ,
{ '>' , '>' , '>' , '>' , '>' , '<' , '<' , '>' , '>' , '<' } ,
{ '>' , '>' , '>' , '>' , '>' , '<' , '<' , '>' , '>' , '<' } ,
{ '>' , '>' , '<' , '<' , '>' , '<' , '<' , '>' , '>' , '<' } ,
{ '>' , '>' , '>' , '>' , '>' , , , '>' , '>' , } ,
{ '<' , '<' , '<' , '<' , '<' , '<' , '<' , '=' , '>' , '<' } ,
{ '>' , '>' , '>' , '>' , '>' , , , '>' , '>' , } ,
{ '<' , '<' , '<' , '<' , '<' , '<' , '<' , , '$' , '<' } ,
{ '>' , '>' , '>' , '>' , '>' , , , '>' , '>' , }
}
Definition at line 8 of file inc/ars/exprint.h. Referenced by atSr(). |
1.3.3