Compare commits
No commits in common. "fc1e13b74dd3bb9ecef01a9bff0630c0b3145ac5" and "e84bb426f511fc9e6b5e5abb5c38e13b0b2bbf92" have entirely different histories.
fc1e13b74d
...
e84bb426f5
|
@ -6,12 +6,12 @@
|
||||||
<LocalDebuggerCommandArguments>--path "D:\手作小说\科学+修仙+创造世界"</LocalDebuggerCommandArguments>
|
<LocalDebuggerCommandArguments>--path "D:\手作小说\科学+修仙+创造世界"</LocalDebuggerCommandArguments>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup Label="QtSettings" Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
<PropertyGroup Label="QtSettings" Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
||||||
<QtLastBackgroundBuild>2024-06-15T14:08:20.0960465Z</QtLastBackgroundBuild>
|
<QtLastBackgroundBuild>2024-06-09T14:31:55.5400719Z</QtLastBackgroundBuild>
|
||||||
<QtTouchProperty>
|
<QtTouchProperty>
|
||||||
</QtTouchProperty>
|
</QtTouchProperty>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup Label="QtSettings" Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
<PropertyGroup Label="QtSettings" Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
||||||
<QtLastBackgroundBuild>2024-06-15T14:08:20.2054213Z</QtLastBackgroundBuild>
|
<QtLastBackgroundBuild>2024-06-09T14:31:55.8096222Z</QtLastBackgroundBuild>
|
||||||
<QtTouchProperty>
|
<QtTouchProperty>
|
||||||
</QtTouchProperty>
|
</QtTouchProperty>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
|
@ -22,7 +22,8 @@ QString NovelParser::version() const
|
||||||
return "1.0.0";
|
return "1.0.0";
|
||||||
}
|
}
|
||||||
|
|
||||||
std::shared_ptr<const ast_gen::ElementAccess> NovelParser::parse(const QFileInfoList source_list) const {
|
std::shared_ptr<const ast_gen::ElementAccess> NovelParser::parse(const QFileInfoList source_list) const
|
||||||
|
{
|
||||||
QList<std::shared_ptr<const ast_basic::TokenNode>> forst_root;
|
QList<std::shared_ptr<const ast_basic::TokenNode>> forst_root;
|
||||||
auto lex_reader = NovalSyntax::getLexReader();
|
auto lex_reader = NovalSyntax::getLexReader();
|
||||||
|
|
||||||
|
|
|
@ -5,12 +5,12 @@
|
||||||
<DebuggerFlavor>WindowsLocalDebugger</DebuggerFlavor>
|
<DebuggerFlavor>WindowsLocalDebugger</DebuggerFlavor>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup Label="QtSettings" Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
<PropertyGroup Label="QtSettings" Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
||||||
<QtLastBackgroundBuild>2024-06-15T14:08:20.4574393Z</QtLastBackgroundBuild>
|
<QtLastBackgroundBuild>2024-06-09T14:31:56.1755099Z</QtLastBackgroundBuild>
|
||||||
<QtTouchProperty>
|
<QtTouchProperty>
|
||||||
</QtTouchProperty>
|
</QtTouchProperty>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup Label="QtSettings" Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
<PropertyGroup Label="QtSettings" Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
||||||
<QtLastBackgroundBuild>2024-06-15T14:08:20.5199406Z</QtLastBackgroundBuild>
|
<QtLastBackgroundBuild>2024-06-09T14:31:56.2760593Z</QtLastBackgroundBuild>
|
||||||
<QtTouchProperty>
|
<QtTouchProperty>
|
||||||
</QtTouchProperty>
|
</QtTouchProperty>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
|
@ -5,12 +5,12 @@
|
||||||
<DebuggerFlavor>WindowsLocalDebugger</DebuggerFlavor>
|
<DebuggerFlavor>WindowsLocalDebugger</DebuggerFlavor>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup Label="QtSettings" Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
<PropertyGroup Label="QtSettings" Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
||||||
<QtLastBackgroundBuild>2024-06-15T14:08:20.2523510Z</QtLastBackgroundBuild>
|
<QtLastBackgroundBuild>2024-06-09T14:31:56.3290165Z</QtLastBackgroundBuild>
|
||||||
<QtTouchProperty>
|
<QtTouchProperty>
|
||||||
</QtTouchProperty>
|
</QtTouchProperty>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup Label="QtSettings" Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
<PropertyGroup Label="QtSettings" Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
||||||
<QtLastBackgroundBuild>2024-06-15T14:08:20.3148604Z</QtLastBackgroundBuild>
|
<QtLastBackgroundBuild>2024-06-09T14:31:56.4329521Z</QtLastBackgroundBuild>
|
||||||
<QtTouchProperty>
|
<QtTouchProperty>
|
||||||
</QtTouchProperty>
|
</QtTouchProperty>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
|
@ -247,5 +247,17 @@ QList<std::shared_ptr<const TokenNode>> ExprsChecker::parseFrom(const QList<std:
|
||||||
if (!all_tokens.size())
|
if (!all_tokens.size())
|
||||||
return QList<std::shared_ptr<const TokenNode>>();
|
return QList<std::shared_ptr<const TokenNode>>();
|
||||||
|
|
||||||
|
int progress = 0;
|
||||||
|
while (progress < all_tokens.size()) {
|
||||||
|
auto result = this->syntax_tree_root->match(all_tokens.mid(progress));
|
||||||
|
progress += std::get<1>(result);
|
||||||
|
|
||||||
|
if (std::get<0>(result) != BaseRule::MatchResult::Success) {
|
||||||
|
auto target = all_tokens[progress + 1];
|
||||||
|
throw new SyntaxException(QString(u8"Syntax[0x0003]代码自'%1:<%2,%3>'后无法匹配:%4。")
|
||||||
|
.arg(target->content()).arg(target->row()).arg(target->column()).arg(target->file()));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return this->syntax_tree_root->parse(all_tokens);
|
return this->syntax_tree_root->parse(all_tokens);
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,12 +2,12 @@
|
||||||
<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
<PropertyGroup />
|
<PropertyGroup />
|
||||||
<PropertyGroup Label="QtSettings" Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
<PropertyGroup Label="QtSettings" Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
||||||
<QtLastBackgroundBuild>2024-06-15T14:08:20.3461410Z</QtLastBackgroundBuild>
|
<QtLastBackgroundBuild>2024-06-09T14:31:55.8742215Z</QtLastBackgroundBuild>
|
||||||
<QtTouchProperty>
|
<QtTouchProperty>
|
||||||
</QtTouchProperty>
|
</QtTouchProperty>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup Label="QtSettings" Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
<PropertyGroup Label="QtSettings" Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
||||||
<QtLastBackgroundBuild>2024-06-15T14:08:20.4105452Z</QtLastBackgroundBuild>
|
<QtLastBackgroundBuild>2024-06-09T14:31:56.1208490Z</QtLastBackgroundBuild>
|
||||||
<QtTouchProperty>
|
<QtTouchProperty>
|
||||||
</QtTouchProperty>
|
</QtTouchProperty>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
Loading…
Reference in New Issue