2024-01-18 23:27:06 +01:00
|
|
|
#ifndef _TEMP_LANG_FRONTEND_HPP_
|
|
|
|
#define _TEMP_LANG_FRONTEND_HPP_
|
|
|
|
|
|
|
|
#include <string>
|
|
|
|
#include <iostream>
|
|
|
|
#include <fstream>
|
|
|
|
#include <istream>
|
|
|
|
#include <streambuf>
|
|
|
|
|
|
|
|
class TempLangFrontend {
|
|
|
|
public:
|
|
|
|
TempLangFrontend(const std::string &source_file)
|
|
|
|
{
|
|
|
|
m_source_file = source_file;
|
|
|
|
}
|
|
|
|
|
2024-01-20 20:17:36 +01:00
|
|
|
virtual int analyze() = 0;
|
2024-01-18 23:27:06 +01:00
|
|
|
|
|
|
|
const std::string &get_src_file()
|
|
|
|
{
|
|
|
|
return m_source_file;
|
|
|
|
}
|
|
|
|
|
|
|
|
protected:
|
|
|
|
std::string m_source_file;
|
|
|
|
|
2024-01-21 21:48:29 +01:00
|
|
|
|
2024-01-18 23:27:06 +01:00
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* _TEMP_LANG_FRONTEND_HPP_ */
|