diff --git a/WsNovelParser/WsNovelParser.vcxproj.user b/WsNovelParser/WsNovelParser.vcxproj.user index ceb8a0e..fc67585 100644 --- a/WsNovelParser/WsNovelParser.vcxproj.user +++ b/WsNovelParser/WsNovelParser.vcxproj.user @@ -6,9 +6,9 @@ -path "D:\手作小说\科学+修仙+创造世界" - 2024-05-26T03:00:46.1252886Z + 2024-06-04T12:14:58.9515031Z - 2024-05-26T03:00:46.2759396Z + 2024-06-04T12:14:59.0770864Z \ No newline at end of file diff --git a/WsNovelParser/main.cpp b/WsNovelParser/main.cpp index c343cc2..4dc83d7 100644 --- a/WsNovelParser/main.cpp +++ b/WsNovelParser/main.cpp @@ -16,6 +16,20 @@ using namespace example_novel; +std::function, int)> tnode_print = +[&](std::shared_ptr node, int intend) { + auto name = node->element()->signature(); + auto text = QString(intend * 2, ' ') + name; + /*for (auto& t : node->tokens()) { + text += " " + t->token()->content(); + }*/ + qDebug() << text; + + for (auto& c_n : node->children()) { + tnode_print(c_n, intend + 1); + } +}; + int main(int argc, char* argv[]) { QCoreApplication a(argc, argv); @@ -94,19 +108,6 @@ int main(int argc, char* argv[]) { } system("fdp -Tsvg volumes_group.dot -o volumes_group.svg"); - std::function, int)> tnode_print = - [&](std::shared_ptr node, int intend) { - auto name = node->element()->signature(); - auto text = QString(intend * 2, ' ') + name; - /*for (auto& t : node->tokens()) { - text += " " + t->token()->content(); - }*/ - qDebug() << text; - - for (auto& c_n : node->children()) { - tnode_print(c_n, intend + 1); - } - }; { QFile tfile("./index.html"); @@ -193,7 +194,8 @@ int main(int argc, char* argv[]) { } } - tnode_print(novel_accesstree, 0); + //tnode_print(novel_accesstree, 0); + qDebug() << u8"ɹ" << QDir::current().absoluteFilePath(u8"index.html"); } catch (lib_syntax::SyntaxException* e) { qDebug().noquote() << e->message(); diff --git a/libParse/libParse.vcxproj.user b/libParse/libParse.vcxproj.user index c598050..ba1413b 100644 --- a/libParse/libParse.vcxproj.user +++ b/libParse/libParse.vcxproj.user @@ -5,9 +5,9 @@ WindowsLocalDebugger - 2024-05-26T03:00:46.6593548Z + 2024-06-04T12:14:59.3510858Z - 2024-05-26T03:00:46.7674012Z + 2024-06-04T12:14:59.4330831Z \ No newline at end of file diff --git a/libSyntax/libSyntax.vcxproj.user b/libSyntax/libSyntax.vcxproj.user index 99e8eaf..4790739 100644 --- a/libSyntax/libSyntax.vcxproj.user +++ b/libSyntax/libSyntax.vcxproj.user @@ -5,9 +5,9 @@ WindowsLocalDebugger - 2024-05-26T03:00:46.5033717Z + 2024-06-04T12:14:59.1190864Z - 2024-05-26T03:00:46.6093560Z + 2024-06-04T12:14:59.1920999Z \ No newline at end of file diff --git a/libToken/libToken.vcxproj.user b/libToken/libToken.vcxproj.user index 7dce963..3d33b77 100644 --- a/libToken/libToken.vcxproj.user +++ b/libToken/libToken.vcxproj.user @@ -2,9 +2,9 @@ - 2024-05-26T03:00:46.3513401Z + 2024-06-04T12:14:59.2310840Z - 2024-05-26T03:00:46.4494964Z + 2024-06-04T12:14:59.3070840Z \ No newline at end of file