nothing
This commit is contained in:
parent
fea231dec8
commit
823f8d08ae
|
@ -2,8 +2,7 @@
|
|||
|
||||
#include "ast_gen.h"
|
||||
|
||||
namespace example_novel
|
||||
{
|
||||
namespace example_novel {
|
||||
enum class NovelNode {
|
||||
GlobalElement = 0,
|
||||
TextSection = 1,
|
||||
|
@ -184,6 +183,7 @@ namespace lib_syntax {
|
|||
|
||||
virtual std::tuple<IBasicRule::MatchResult, std::shared_ptr<const lib_words::IWordBase>>
|
||||
parse(std::shared_ptr<IContext> rt_inst, std::shared_ptr<const lib_words::IWordBase> head) const override {
|
||||
|
||||
std::shared_ptr<ast_basic::IExprInst> elm_ast = this->newEmptyInstance();
|
||||
auto text_present = this->token_present();
|
||||
|
||||
|
@ -199,7 +199,8 @@ namespace lib_syntax {
|
|||
rt_inst->popExprInst();
|
||||
rt_inst->popExprRule();
|
||||
break;
|
||||
case IBasicRule::MatchResult::Success: {
|
||||
case IBasicRule::MatchResult::Success:
|
||||
{
|
||||
if (!std::dynamic_pointer_cast<example_novel::Document>(elm_ast)) {
|
||||
auto start_pos = tokens_decl.first()->position();
|
||||
rt_inst->clearErrors(rt_inst->currentFile(), start_pos);
|
||||
|
|
Loading…
Reference in New Issue