Skip to content

Commit ac5341e

Browse files
check left recursion
1 parent 1917fcb commit ac5341e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/tiger/absyn/absyn.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -506,6 +506,10 @@ class NameAndTyList {
506506
name_and_ty_list_.push_front(name_and_ty);
507507
return this;
508508
}
509+
NameAndTyList *Append(NameAndTy *name_and_ty) {
510+
name_and_ty_list_.push_back(name_and_ty);
511+
return this;
512+
}
509513
[[nodiscard]] const std::list<NameAndTy *> &GetList() const {
510514
return name_and_ty_list_;
511515
}

0 commit comments

Comments
 (0)