slash-0725

This commit is contained in:
codeboss 2024-07-25 11:28:03 +08:00
parent 0df0e77df5
commit c277af9c36
1 changed files with 14 additions and 7 deletions

View File

@ -22,6 +22,10 @@ QList<ParseFork> TokenMatch::parse(const ParseFork& context) const
return QList<ParseFork>{result}; return QList<ParseFork>{result};
} }
if (head->content() == u8"SDK·´À­O") {
qDebug() << true;
}
QList<ParseFork> result_list; QList<ParseFork> result_list;
auto match_result = define_peer->analysis(head); auto match_result = define_peer->analysis(head);
if (get<0>(match_result)) { if (get<0>(match_result)) {
@ -34,6 +38,7 @@ QList<ParseFork> TokenMatch::parse(const ParseFork& context) const
else { else {
success_fork.next = head->nextWord(); success_fork.next = head->nextWord();
} }
result_list << success_fork;
} }
else { else {
if (context.occurs != ErrDeals::None) { if (context.occurs != ErrDeals::None) {
@ -121,6 +126,7 @@ QList<ParseFork> Rept::parse(const ParseFork& context) const {
if (!times_remains) if (!times_remains)
return retvs << context; return retvs << context;
auto result_present = rule_peer->token_present();
auto result_forks = rule_peer->parse(context); auto result_forks = rule_peer->parse(context);
for (auto it : result_forks) { for (auto it : result_forks) {
switch (it.occurs) { switch (it.occurs) {
@ -144,6 +150,7 @@ QList<ParseFork> Rept::parse(const ParseFork& context) const {
if (!times_remains) if (!times_remains)
return retvs << context; return retvs << context;
auto result_present = rule_peer->token_present();
auto result_forks = rule_peer->parse(context); auto result_forks = rule_peer->parse(context);
for (auto rst : result_forks) { for (auto rst : result_forks) {
switch (rst.occurs) { switch (rst.occurs) {
@ -352,4 +359,4 @@ ParseFork::ParseFork(const ParseFork& other)
: occurs(other.occurs), : occurs(other.occurs),
error_messages(other.error_messages), error_messages(other.error_messages),
mbrs_list(other.mbrs_list), mbrs_list(other.mbrs_list),
tokens_list(other.tokens_list) {} tokens_list(other.tokens_list), next(other.next) {}