

Definition at line 102 of file scanner.cc.
Public Member Functions | |
| KwScanner (IScanner *scannerToUseAndDelete) | |
| virtual | ~KwScanner () |
| virtual bool | readNext (Token &token) |
| virtual bool | hasError () const |
Private Types | |
| typedef EToken * | TMap |
Private Member Functions | |
| void | initMap () |
| if you are looking where to add a new keyword, this is the best place ;-) | |
Private Attributes | |
| TMap | map_ |
| map keyword->token | |
| IScanner * | scan_ |
| superior IScanner object (design pattern decorator) | |
Definition at line 117 of file scanner.cc.
Definition at line 104 of file scanner.cc.
References initMap().

| virtual ~KwScanner | ( | ) | [inline, virtual] |
| bool readNext | ( | Token & | token | ) | [virtual] |
read next token
| token | Where to store token to. |
Implements IScanner.
Definition at line 340 of file scanner.cc.
References ETOKEN_ID, IScanner::readNext(), Token::text, and Token::type.

| virtual bool hasError | ( | ) | const [inline, virtual] |
Return true if any error was detected.
Implements IErrorSensitive.
Definition at line 113 of file scanner.cc.
References IErrorSensitive::hasError(), and scan_.

| void initMap | ( | ) | [private] |
if you are looking where to add a new keyword, this is the best place ;-)
Definition at line 358 of file scanner.cc.
References ETOKEN_KW_AND, ETOKEN_KW_DIV, ETOKEN_KW_DOUBLE, ETOKEN_KW_ELSE, ETOKEN_KW_EQ, ETOKEN_KW_IF, ETOKEN_KW_INT, ETOKEN_KW_NEQ, ETOKEN_KW_NOT, ETOKEN_KW_OR, ETOKEN_KW_STRING, ETOKEN_KW_VAR, ETOKEN_KW_VOID, and ETOKEN_KW_WHILE.
Referenced by KwScanner().

superior IScanner object (design pattern decorator)
Definition at line 120 of file scanner.cc.
Referenced by hasError(), and ~KwScanner().
1.5.4