32 lines
671 B
C
32 lines
671 B
C
|
#ifndef STORYTOOL_H
|
||
|
#define STORYTOOL_H
|
||
|
|
||
|
#include "SyntaxBase.h"
|
||
|
#include "libParse.h"
|
||
|
|
||
|
#include <QFileInfo>
|
||
|
|
||
|
namespace MakeTools {
|
||
|
/**
|
||
|
* @brief 构建机制
|
||
|
*/
|
||
|
class LIBPARSE_EXPORT StoryTool
|
||
|
{
|
||
|
public:
|
||
|
StoryTool(Parse::Result::ParseCore *core);
|
||
|
|
||
|
QList<QString> compile(const QFileInfo &file);
|
||
|
QList<QString> compileSource(const QFileInfo &file, const QString &src);
|
||
|
|
||
|
bool checkPass(QList<Parse::ErrorMessage> &errors);
|
||
|
|
||
|
private:
|
||
|
Parse::Result::ParseCore *const parse_core;
|
||
|
|
||
|
bool error_check(Parse::Result::DesNode *node, QList<Parse::ErrorMessage> &err_out);
|
||
|
};
|
||
|
|
||
|
}
|
||
|
|
||
|
#endif // STORYTOOL_H
|