diff options
author | John Hodge <tpg@mutabah.net> | 2015-03-07 12:07:43 +0800 |
---|---|---|
committer | John Hodge <tpg@mutabah.net> | 2015-03-07 12:07:43 +0800 |
commit | fcec09900f158aa939eb1c96607aaabf4c8171ef (patch) | |
tree | eaac668a8d19b56fee0cdafb218ec069cdab8bc5 /src/parse/preproc.hpp | |
parent | a9692e359884672b30e1742bada368330115cc14 (diff) | |
download | mrust-fcec09900f158aa939eb1c96607aaabf4c8171ef.tar.gz |
Added file+line reporting to error messages
Diffstat (limited to 'src/parse/preproc.hpp')
-rw-r--r-- | src/parse/preproc.hpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/parse/preproc.hpp b/src/parse/preproc.hpp index bedb3076..08fda12d 100644 --- a/src/parse/preproc.hpp +++ b/src/parse/preproc.hpp @@ -6,13 +6,16 @@ class Preproc:
public TokenStream
{
+ ::std::string m_path;
+ unsigned int m_line;
Lexer m_lex;
public:
Preproc(::std::string path);
~Preproc();
- virtual Token realGetToken();
+ virtual Position getPosition() const override;
+ virtual Token realGetToken() override;
private:
Token getTokenInt();
};
|