Starting to stand up the parser using std::pair

This commit is contained in:
Jonathan Turner
2009-05-26 22:39:55 +00:00
parent 8f6f4b81db
commit 6a608f995a
4 changed files with 64 additions and 21 deletions

View File

@@ -30,6 +30,8 @@ struct Token {
int identifier;
File_Position start, end;
std::vector<Token> children;
Token(const std::string &token_text, int id) : text(token_text), identifier(id) { }
};