Plot Script
|
#include <deque>
#include <istream>
Go to the source code of this file.
Classes | |
class | Token |
Value class representing a token. More... | |
Typedefs | |
typedef std::deque< Token > | TokenSequenceType |
Functions | |
TokenSequenceType | tokenize (std::istream &seq) |
Split a stream into a sequnce of tokens. More... | |
Defines the Token and TokenSequence types, and associated functions.
Define the token sequence using a std container. Any supporting sequential access should do.
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).