bool escape_next
Whether the next character is to be interpreted as an escape code.
void Push(char c)
Pushes a raw character onto the end of the current word.
QuoteType quote_type
The type of quotation currently being used in this Tokeniser.
Tokeniser()
Constructs a new Tokeniser.
void EndWord()
Finishes the current word, adding it to the tokenised line.
void Emit()
Finishes the current word and sends the line to the CommandHandler.
bool in_word
Whether the tokeniser is currently in a word.
QuoteType
Enumeration of quotation types.
std::vector< std::vector< std::string > > Feed(const std::string &raw)
Feeds a string into a Tokeniser.
In single quotes ('').
std::vector< std::string > words
The current vector of completed, tokenised words.
Declaration of classes pertaining to responses to the client.
Not currently in a quote pair.
std::vector< std::vector< std::string > > ready_lines
The current vector of completed, tokenised lines.
Declaration of the Tokeniser class.
std::string current_word
The current, incomplete word to which new characters should be added.