From e07354c5272c5b1ecc08fbfa4de9d38318835ffe Mon Sep 17 00:00:00 2001
From: codeboss <2422523675@qq.com>
Date: Tue, 4 Jun 2024 22:17:40 +0800
Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E9=99=A4=E5=86=97=E4=BD=99=E7=9A=84?=
=?UTF-8?q?=E7=BB=93=E6=9E=84=E4=BF=A1=E6=81=AF?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
WsNovelParser/WsNovelParser.vcxproj.user | 4 ++--
WsNovelParser/main.cpp | 30 +++++++++++++-----------
libParse/libParse.vcxproj.user | 4 ++--
libSyntax/libSyntax.vcxproj.user | 4 ++--
libToken/libToken.vcxproj.user | 4 ++--
5 files changed, 24 insertions(+), 22 deletions(-)
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