blob: 5027129f8149530d11b7c0514b90901fcd54897b [file] [log] [blame]
#ifndef SOURCEPOS_H
#define SOURCEPOS_H
#include <string>
using namespace std;
class SourcePos
{
public:
string file;
int line;
SourcePos(const string& f, int l);
SourcePos(const SourcePos& that);
SourcePos();
~SourcePos();
string ToString() const;
int Error(const char* fmt, ...) const;
static bool HasErrors();
static void PrintErrors(FILE* to);
};
extern const SourcePos GENERATED_POS;
#endif // SOURCEPOS_H