WsParser_VS/libSyntax/syntax_novel.h

25 lines
876 B
C
Raw Normal View History

2024-03-17 07:58:28 +00:00
#pragma once
#include "ast_basic.h"
#include "ast_gen.h"
2024-03-17 07:58:28 +00:00
#include "libsyntax.h"
2025-02-02 12:54:32 +00:00
#include "libtokens.h"
2024-03-17 07:58:28 +00:00
#include <tokens_novel.h>
namespace example_novel {
2025-02-08 01:06:39 +00:00
class LIBSYNTAX_EXPORT NovalSyntax {
public:
/**
2025-02-11 14:32:10 +00:00
* @brief novel语法解析树
2025-02-08 01:06:39 +00:00
* @return
*/
static std::shared_ptr<const lib_syntax::ExprRule> getSyntaxTree();
2024-03-17 07:58:28 +00:00
2025-02-07 15:26:20 +00:00
// static std::shared_ptr<const ast_gen::SyntaxElement> tidy(std::shared_ptr<ast_gen::SyntaxElement> root, QList<std::shared_ptr<ast_gen::SyntaxElement>> docs);
2025-02-07 15:26:20 +00:00
//private:
// static void build_objecttree(std::shared_ptr<ast_gen::SyntaxElement> root, QList<std::shared_ptr<ast_gen::SyntaxElement>> docs);
// static void node_register(std::shared_ptr<const ast_gen::SyntaxElement> root, QList<std::shared_ptr<ast_gen::SyntaxElement>> docs);
2025-02-08 01:06:39 +00:00
};
2024-03-17 07:58:28 +00:00
} // namespace example_novel