References a location in the source-file.
Definition source-reference.hpp:16
Stream of tokens read by the parser to provide context for errors.
Definition token-stream.hpp:106
std::string get_line(size_t _line) const
Definition token-stream.cpp:42
~TokenStream()
Definition token-stream.cpp:17
const SourceReference & get_current_source_ref() const
Definition token-stream.cpp:33
const std::vector< Gyoji::owned< Token > > & get_tokens() const
Definition token-stream.cpp:21
void append_token(std::string _value)
Definition token-stream.cpp:88
std::vector< std::pair< size_t, std::string > > context(size_t line_start, size_t line_end) const
Definition token-stream.cpp:57
TokenStream()
Definition token-stream.cpp:14
const Token & add_token(TokenID _typestr, std::string _value, const std::string &_filename, size_t _line, size_t _column)
Definition token-stream.cpp:72
Represents a token read from the input stream.
Definition token-stream.hpp:41
const std::string & get_value() const
Definition token-stream.cpp:118
~Token()
Definition token-stream.cpp:108
const TokenID & get_type() const
Definition token-stream.cpp:114
The context namespace deals with objects that should last the entire scope of compilation.
Definition gyoji-context.hpp:16