www.pudn.com > pl0_compiler_c.rar > errors.h
// errors.h: interface for the errors class.
//////////////////////////////////////////////////////////////////////
#ifndef __ERRORS_H
#define __ERRORS_H
#include "pl0.h"
#define MAX_ERROR_NUM 40
class CErrors
{
public:
CErrors(CPlCompiler *p) {pl=p;num=0;}
void Add(int err);
int Number() {return num;}
void Display();
private:
char errors[MAX_ERROR_NUM];
int lines[MAX_ERROR_NUM];
int num;
CPlCompiler *pl;
};
#endif