#include <token_spec.hh>
Inheritance diagram for TokenDesc:


Public Methods | |
| TokenDesc (const string &name_, int id_, ITokenSpec::Tkinds kind_, ReNode *regexp_, const string &action_, const Position &pos_) | |
| TokenDesc (const string name_, int id_, const Position &pos_) | |
| TokenDesc (const TokenDesc &o) | |
| virtual const string& | name () const |
| virtual int | id () const |
| virtual ITokenSpec::Tkinds | kind () const |
| virtual const Position& | pos () const |
| virtual const CodeChunk& | tokAction () const |
| virtual void | dump (ostream &os) const |
Private Attributes | |
| string | _name |
| ITokenSpec::Tkinds | _kind |
| ReNode* | _regexp |
| int | _id |
| CodeChunk | _action |
| Position | _pos |
|
|
Creates a new regular or skip token spec object. Definition at line 62 of file token_spec.hh. |
|
|
Creates a new special token spec object (only name and id are needed). Definition at line 72 of file token_spec.hh. |
|
|
Definition at line 77 of file token_spec.hh. |
|
|
Reimplemented from ITokenDesc. Definition at line 82 of file token_spec.hh. Referenced by EbnfTerminalNode::dump(), and operator==().
|
|
|
Reimplemented from ITokenDesc. Definition at line 84 of file token_spec.hh. |
|
|
Reimplemented from ITokenDesc. Definition at line 86 of file token_spec.hh. |
|
|
Reimplemented from ITokenDesc. Definition at line 88 of file token_spec.hh. |
|
|
Reimplemented from ITokenDesc. Definition at line 90 of file token_spec.hh. |
|
|
If DEBUG is enabled, this method will dump all the data about this token into the given stream. Reimplemented from ITokenDesc. Definition at line 139 of file token_spec.cc. |
|
|
The token's name. Definition at line 106 of file token_spec.hh. |
|
|
The token's kind (regular/skip/special. Definition at line 111 of file token_spec.hh. |
|
|
the regular expression o this token. Definition at line 116 of file token_spec.hh. |
|
|
Its unique id (this will also be the number used in the generated code). Definition at line 121 of file token_spec.hh. |
|
|
User code to be executed when this token was matched. Definition at line 126 of file token_spec.hh. |
|
|
The token's position in the input file. Definition at line 131 of file token_spec.hh. |
1.2.8.1 written by Dimitri van Heesch,
© 1997-2001