#include <scanner.h>
Definition at line 81 of file scanner.h.
Public Member Functions | |
| Token () | |
| Token (EToken type_, int lineno_, int numberInt_, double numberDouble_, const std::string &text_) | |
Public Attributes | |
| EToken | type |
| type of token | |
| int | lineno |
| line number in source code | |
| int | numberInt |
| value - only for ETOKEN_NUMBER_INT | |
| double | numberDouble |
| value - only for ETOKEN_NUMBER_DOUBLE | |
| std::string | text |
| value - only for ETOKEN_ID and ETOKEN_STRING | |
type of token
Definition at line 82 of file scanner.h.
Referenced by CalleeSet::add(), BinaryCmd::aluOp(), BinaryCmd::chkTypes(), CmdFactory::createAssign(), CmdFactory::createBinary(), CmdFactory::createPush(), CmdFactory::createUnary(), BinaryCmd::divide(), Builder::evalUnOp(), BinaryCmd::exec(), UnaryCmd::exec(), StreamDecorator::operator<<(), operator<<(), operator==(), KwScanner::readNext(), FlexScanner::readNext(), and yy::yylex().
| int lineno |
line number in source code
Definition at line 83 of file scanner.h.
Referenced by VmRunner::Private::chkFncRefs(), Error::Error(), Builder::fncCall(), Builder::fncDecl(), Builder::fncDefArg(), Builder::fncDefBody(), Builder::fncDefVar(), Builder::glVar(), CalleeSet::Private::SortableToken::operator int(), operator<<(), operator==(), FlexScanner::readNext(), and yy::yylex().
| int numberInt |
value - only for ETOKEN_NUMBER_INT
Definition at line 85 of file scanner.h.
Referenced by CmdFactory::createPush(), operator<<(), operator==(), and FlexScanner::readNext().
| double numberDouble |
value - only for ETOKEN_NUMBER_DOUBLE
Definition at line 86 of file scanner.h.
Referenced by CmdFactory::createPush(), operator<<(), operator==(), and FlexScanner::readNext().
| std::string text |
value - only for ETOKEN_ID and ETOKEN_STRING
Definition at line 87 of file scanner.h.
Referenced by BinaryCmd::BinaryCmd(), CmdFactory::createAssign(), CmdFactory::createPush(), Error::Error(), CallCmd::exec(), ArgCmd::exec(), LcVarCmd::exec(), GlVarCmd::exec(), BisonListener::fncCallPrintArg(), IfCmd::IfCmd(), operator<<(), operator==(), KwScanner::readNext(), FlexScanner::readNext(), UnaryCmd::UnaryCmd(), and WhileCmd::WhileCmd().
1.5.4