summaryrefslogtreecommitdiff
path: root/src/parse/preproc.hpp
diff options
context:
space:
mode:
authorJohn Hodge <tpg@mutabah.net>2015-03-07 12:07:43 +0800
committerJohn Hodge <tpg@mutabah.net>2015-03-07 12:07:43 +0800
commitfcec09900f158aa939eb1c96607aaabf4c8171ef (patch)
treeeaac668a8d19b56fee0cdafb218ec069cdab8bc5 /src/parse/preproc.hpp
parenta9692e359884672b30e1742bada368330115cc14 (diff)
downloadmrust-fcec09900f158aa939eb1c96607aaabf4c8171ef.tar.gz
Added file+line reporting to error messages
Diffstat (limited to 'src/parse/preproc.hpp')
-rw-r--r--src/parse/preproc.hpp5
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();
};