summaryrefslogtreecommitdiff
path: root/src/parse/preproc.hpp
blob: 08fda12d03ee0c00d60540e02a7bb6901339681e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#ifndef PREPROC_H
#define PREPROC_H

#include "lex.hpp"

class Preproc:
    public TokenStream
{
    ::std::string   m_path;
    unsigned int m_line;
    Lexer   m_lex;

public:
    Preproc(::std::string path);
    ~Preproc();

    virtual Position getPosition() const override;
    virtual Token realGetToken() override;
private:
    Token getTokenInt();
};

#endif // PREPROC_H