#include "config.h"
#include "scanner.h"
#include "robIO.h"

Go to the source code of this file.
Classes | |
| class | PrivateFlexLexer |
| class | FlexScanner |
Functions | |
| bool | readHex (const string &str, unsigned &dest) |
| bool | readHexFromEnd (string &str, unsigned width, unsigned &dest) |
| bool | parsePmArgs (const string &str, Token::TArgVector &args) |
| std::ostream & | operator<< (std::ostream &str, EToken type) |
| send token type to stream in human-readable form | |
| std::ostream & | operator<< (std::ostream &str, const Token &token) |
| send token to stream in human-readable form | |
| std::ostream& operator<< | ( | std::ostream & | str, | |
| const Token & | 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 & | str, | |
| EToken | type | |||
| ) |
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.
| bool @15::parsePmArgs | ( | const string & | str, | |
| Token::TArgVector & | args | |||
| ) | [static] |
Definition at line 149 of file scanner.cc.
References readHexFromEnd().
Referenced by FlexScanner::readNext().


| bool @15::readHex | ( | const string & | str, | |
| unsigned & | dest | |||
| ) | [static] |
Definition at line 118 of file scanner.cc.
Referenced by readHexFromEnd().

| bool @15::readHexFromEnd | ( | string & | str, | |
| unsigned | width, | |||
| unsigned & | dest | |||
| ) | [static] |
Definition at line 123 of file scanner.cc.
References readHex().
Referenced by parsePmArgs(), and FlexScanner::readNext().


1.5.4