Plot Script
|
Functions | |
void | store_ifnot_empty (std::string &token, TokenSequenceType &seq) |
TokenSequenceType | tokenize (std::istream &seq) |
Split a stream into a sequnce of tokens. More... | |
Variables | |
const char | OPENCHAR = '(' |
const char | CLOSECHAR = ')' |
const char | COMMENTCHAR = ';' |
void store_ifnot_empty | ( | std::string & | token, |
TokenSequenceType & | seq | ||
) |
TokenSequenceType tokenize | ( | std::istream & | seq | ) |
Split a stream into a sequnce of tokens.
seq | the input character stream |
Split a stream into a sequnce of tokens where a token is one of OPEN or CLOSE or any space-delimited string
Ignores any whitespace and comments (from any ";" to end-of-line).
const char CLOSECHAR = ')' |
const char COMMENTCHAR = ';' |
const char OPENCHAR = '(' |