Skip to content

Commit

Permalink
removed noexcept from parse method to allow exceptions in parser actions
Browse files Browse the repository at this point in the history
  • Loading branch information
romanfedyniak committed Oct 22, 2024
1 parent a296a04 commit 4cee469
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pparser.py
Original file line number Diff line number Diff line change
Expand Up @@ -1308,7 +1308,7 @@ def start(self):
" errorHandler = handler;",
" }",
"",
f" {self.rules_return_type[self.ctx.root_rule.name]} Parser::parse() noexcept",
f" {self.rules_return_type[self.ctx.root_rule.name]} Parser::parse()",
" {",
" this->calculateLineNumbers();",
" this->position = 0;",
Expand Down Expand Up @@ -1341,7 +1341,7 @@ def start(self):
"",
" public:",
" void setErrorHandler(errorHandler_t handler);",
f" {self.rules_return_type[self.ctx.root_rule.name]} parse() noexcept;",
f" {self.rules_return_type[self.ctx.root_rule.name]} parse();",
"",
" explicit Parser(std::string_view src);",
" };",
Expand Down

0 comments on commit 4cee469

Please sign in to comment.