#include "config.h"
#include "term.h"
Go to the source code of this file.
Classes | |
struct | Token |
class | IScanner |
class | ScannerFactory |
Enumerations | |
enum | EToken { ET_NULL = 0, ET_GET_WHISKER_STATUS, ET_GET_COMPASS_HEADING, ET_GET_COMPASS_HEADING_EX, ET_GET_TEMP, ET_GET_WATER, ET_GET_PIR, ET_GET_SONAR, ET_GET_TILT, ET_GET_BATT_VOLTAGE, ET_GET_SW_VERSION, ET_GET_BUTTONS, ET_GET_LIGHT_LEVEL, ET_GET_SOUND_LEVEL, ET_GET_ENCODER_COUNTS, ET_CMD_PG, ET_CMD_PH, ET_CMD_PL, ET_CMD_PM, ET_CMD_PN, ET_CMD_PS, ET_CMD_PW } |
Functions | |
std::ostream & | operator<< (std::ostream &, EToken) |
send token type to stream in human-readable form | |
std::ostream & | operator<< (std::ostream &, const Token &) |
send token to stream in human-readable form |
enum EToken |
token type enumeration
std::ostream& operator<< | ( | std::ostream & | , | |
const Token & | ||||
) |
send token to stream in human-readable form
Definition at line 199 of file scanner.cc.
References Token::args, StreamDecorator::C_LIGHT_BLUE, StreamDecorator::C_LIGHT_GREEN, StreamDecorator::C_LIGHT_RED, StreamDecorator::C_NO_COLOR, ET_CMD_PG, ET_CMD_PH, ET_CMD_PL, ET_CMD_PM, ET_CMD_PN, ET_CMD_PS, ET_CMD_PW, ET_NULL, Token::lineno, Token::text, and Token::type.
std::ostream& operator<< | ( | std::ostream & | , | |
EToken | ||||
) |
send token type to stream in human-readable form
Definition at line 169 of file scanner.cc.
References StreamDecorator::C_NO_COLOR, StreamDecorator::C_YELLOW, ET_CMD_PG, ET_CMD_PH, ET_CMD_PL, ET_CMD_PM, ET_CMD_PN, ET_CMD_PS, ET_CMD_PW, ET_GET_BATT_VOLTAGE, ET_GET_BUTTONS, ET_GET_COMPASS_HEADING, ET_GET_COMPASS_HEADING_EX, ET_GET_ENCODER_COUNTS, ET_GET_LIGHT_LEVEL, ET_GET_PIR, ET_GET_SONAR, ET_GET_SOUND_LEVEL, ET_GET_SW_VERSION, ET_GET_TEMP, ET_GET_TILT, ET_GET_WATER, ET_GET_WHISKER_STATUS, and ET_NULL.