Skip to content

Commit

Permalink
Fix bug in adapt_grammar_actions.py (PEG parser). Related to issue #2354
Browse files Browse the repository at this point in the history
  • Loading branch information
PierreQuentel committed Jan 19, 2024
1 parent 217c36b commit 2b6e1a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/adapt_grammar_actions.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def transform_action(action):
action9 = re.sub(r'([a-z]+)_ty\b', r'$B.ast.\1', action8)

for name in operators + ['Module']:
action9 = re.sub(rf'\b{name}\b', 'new $B.ast.' + name, action9)
action9 = re.sub(rf'\b{name}\b', 'new $B.ast.' + name + '()', action9)

for name in helper_functions:
action9 = re.sub(rf'\b{name}\b', '$B.helper_functions.' + name, action9)
Expand Down

0 comments on commit 2b6e1a9

Please sign in to comment.