Gyoji Compiler
Loading...
Searching...
No Matches
source-reference.hpp
1#pragma once
2
3#include <string>
4
5namespace Gyoji::context {
17 public:
19 const std::string & _filename,
20 size_t _line,
21 size_t _column,
22 size_t _length
23 );
24 SourceReference(const SourceReference & _other);
29 const std::string & get_filename() const;
30 size_t get_line() const;
31 size_t get_column() const;
32 size_t get_length() const;
33 private:
34 const std::string & filename;
35 size_t line;
36 size_t column;
37 size_t length;
38 };
39};
References a location in the source-file.
Definition source-reference.hpp:16
~SourceReference()
Definition source-reference.cpp:25
The context namespace deals with objects that should last the entire scope of compilation.
Definition gyoji-context.hpp:16