diff options
Diffstat (limited to 'src/parse/lex.hpp')
-rw-r--r-- | src/parse/lex.hpp | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/src/parse/lex.hpp b/src/parse/lex.hpp index dbf365a0..6a798909 100644 --- a/src/parse/lex.hpp +++ b/src/parse/lex.hpp @@ -197,43 +197,4 @@ private: class EndOfFile {};
};
-class TokenTree
-{
- Token m_tok;
- ::std::vector<TokenTree> m_subtrees;
-public:
- TokenTree() {}
- TokenTree(Token tok):
- m_tok(tok)
- {
- }
- TokenTree(::std::vector<TokenTree> subtrees):
- m_subtrees(subtrees)
- {
- }
-
- const unsigned int size() const {
- return m_subtrees.size();
- }
- const TokenTree& operator[](unsigned int idx) const {
- return m_subtrees[idx];
- }
- const Token& tok() const {
- return m_tok;
- }
-};
-
-class TTStream:
- public TokenStream
-{
- const TokenTree& m_input_tt;
- ::std::vector< ::std::pair<unsigned int, const TokenTree*> > m_stack;
-public:
- TTStream(const TokenTree& input_tt);
- ~TTStream();
-
-protected:
- virtual Token realGetToken();
-};
-
#endif // LEX_HPP_INCLUDED
|