Gyoji Compiler
Loading...
Searching...
No Matches
gyoji-context.hpp
1#pragma once
2
3#include <gyoji-context/errors.hpp>
4#include <gyoji-context/token-stream.hpp>
5#include <gyoji-context/source-reference.hpp>
6
16namespace Gyoji::context {
17
31 public:
41
49 bool has_errors() const;
50
55 Errors & get_errors() const;
56
65
75 const std::string & get_filename() const;
76
85 void add_filename(const std::string & _filename);
86 private:
88 Gyoji::owned<TokenStream> token_stream;
90 };
91};
Compiler Context.
Definition gyoji-context.hpp:30
TokenStream & get_token_stream() const
Definition compiler-context.cpp:23
bool has_errors() const
Definition compiler-context.cpp:15
Errors & get_errors() const
Definition compiler-context.cpp:19
void add_filename(const std::string &_filename)
Definition compiler-context.cpp:31
const std::string & get_filename() const
Definition compiler-context.cpp:27
Container for errors reported.
Definition errors.hpp:131
Stream of tokens read by the parser to provide context for errors.
Definition token-stream.hpp:106
The context namespace deals with objects that should last the entire scope of compilation.
Definition gyoji-context.hpp:16