注释冗余代码
This commit is contained in:
parent
81db04b444
commit
3ef65d13e8
|
@ -3,11 +3,12 @@
|
|||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
||||
<LocalDebuggerWorkingDirectory>$(SolutionDir)$(Platform)\$(Configuration)\</LocalDebuggerWorkingDirectory>
|
||||
<DebuggerFlavor>WindowsLocalDebugger</DebuggerFlavor>
|
||||
<LocalDebuggerCommandArguments>-path D:\Projects\Cpp\WsNovelParser\x64\test_file</LocalDebuggerCommandArguments>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Label="QtSettings" Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
||||
<QtLastBackgroundBuild>2024-04-04T04:12:24.0605703Z</QtLastBackgroundBuild>
|
||||
<QtLastBackgroundBuild>2024-04-04T05:44:26.2812331Z</QtLastBackgroundBuild>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Label="QtSettings" Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
||||
<QtLastBackgroundBuild>2024-04-04T04:12:24.5356632Z</QtLastBackgroundBuild>
|
||||
<QtLastBackgroundBuild>2024-04-04T05:44:26.7768638Z</QtLastBackgroundBuild>
|
||||
</PropertyGroup>
|
||||
</Project>
|
|
@ -18,10 +18,16 @@ using namespace example_novel;
|
|||
int main(int argc, char* argv[]) {
|
||||
QCoreApplication a(argc, argv);
|
||||
|
||||
try {
|
||||
QFileInfoList files;
|
||||
files.append(QFileInfo("D:\\Projects\\Cpp\\WsNovelParser\\x64\\test_file\\description.txt"));
|
||||
auto sdir = QDir::current();
|
||||
if (argc >= 3 && !strcmp(argv[1], "-path")) {
|
||||
auto tdir = QDir(QString::fromLocal8Bit(argv[2]));
|
||||
if (tdir.exists())
|
||||
sdir = tdir;
|
||||
}
|
||||
|
||||
auto files = sdir.entryInfoList(QStringList() << "*.story");
|
||||
if (files.size()) {
|
||||
try {
|
||||
auto parser = std::make_shared<NovelParser>();
|
||||
auto novel_accesstree = parser->parse(files);
|
||||
|
||||
|
@ -64,9 +70,9 @@ int main(int argc, char* argv[]) {
|
|||
[&](std::shared_ptr<const ast_gen::ElementAccess> node, int intend) {
|
||||
auto name = node->element()->signature();
|
||||
auto text = QString(intend * 2, ' ') + name;
|
||||
for (auto& t : node->tokens()) {
|
||||
/*for (auto& t : node->tokens()) {
|
||||
text += " " + t->token()->content();
|
||||
}
|
||||
}*/
|
||||
qDebug() << text;
|
||||
|
||||
for (auto& c_n : node->children()) {
|
||||
|
@ -84,5 +90,6 @@ int main(int argc, char* argv[]) {
|
|||
qDebug().noquote() << e->message();
|
||||
delete e;
|
||||
}
|
||||
}
|
||||
return a.exec();
|
||||
}
|
||||
|
|
|
@ -5,9 +5,9 @@
|
|||
<DebuggerFlavor>WindowsLocalDebugger</DebuggerFlavor>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Label="QtSettings" Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
||||
<QtLastBackgroundBuild>2024-04-04T04:12:25.1970080Z</QtLastBackgroundBuild>
|
||||
<QtLastBackgroundBuild>2024-04-04T05:44:26.9010407Z</QtLastBackgroundBuild>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Label="QtSettings" Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
||||
<QtLastBackgroundBuild>2024-04-04T04:12:25.4349434Z</QtLastBackgroundBuild>
|
||||
<QtLastBackgroundBuild>2024-04-04T05:44:26.9937157Z</QtLastBackgroundBuild>
|
||||
</PropertyGroup>
|
||||
</Project>
|
|
@ -5,9 +5,9 @@
|
|||
<DebuggerFlavor>WindowsLocalDebugger</DebuggerFlavor>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Label="QtSettings" Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
||||
<QtLastBackgroundBuild>2024-04-04T04:12:24.7411048Z</QtLastBackgroundBuild>
|
||||
<QtLastBackgroundBuild>2024-04-04T05:44:27.2679289Z</QtLastBackgroundBuild>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Label="QtSettings" Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
||||
<QtLastBackgroundBuild>2024-04-04T04:12:25.0903609Z</QtLastBackgroundBuild>
|
||||
<QtLastBackgroundBuild>2024-04-04T05:44:27.3466654Z</QtLastBackgroundBuild>
|
||||
</PropertyGroup>
|
||||
</Project>
|
|
@ -2,9 +2,9 @@
|
|||
<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup />
|
||||
<PropertyGroup Label="QtSettings" Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
||||
<QtLastBackgroundBuild>2024-04-04T04:12:25.4971632Z</QtLastBackgroundBuild>
|
||||
<QtLastBackgroundBuild>2024-04-04T05:44:27.1222839Z</QtLastBackgroundBuild>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Label="QtSettings" Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
||||
<QtLastBackgroundBuild>2024-04-04T04:12:25.6489839Z</QtLastBackgroundBuild>
|
||||
<QtLastBackgroundBuild>2024-04-04T05:44:27.2278924Z</QtLastBackgroundBuild>
|
||||
</PropertyGroup>
|
||||
</Project>
|
Loading…
Reference in New Issue