Blang/src/lib/src/TokenList.hpp

24 lines
315 B
C++
Raw Normal View History

2016-04-22 21:46:31 +02:00
#ifndef TOKENLIST_HPP
#define TOKENLIST_HPP
#include <vector>
#include "Token.hpp"
namespace Blang{
class TokenList
{
public:
const Token& nextToken();
const Token& nextToken(Token::TokenKind);
const Token& operator[](int) const;
private:
std::vector<Token> _tokenList;
};
}
#endif