Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: Add AST nodes of infix operations #741

Merged
merged 4 commits into from
Aug 3, 2024
Merged

Conversation

marihachi
Copy link
Contributor

@marihachi marihachi commented Aug 1, 2024

What

中置演算子は、今まで関数コールの糖衣構文になっていました。つまりパーサーは中置演算子を見つけると関数コールのASTノードを生成します。

今回の変更では、それらの中置演算子を直接表すASTノードを追加します。
インタプリタが中置演算子のASTノードを見つけるとCore:Add系関数を呼び出すようになっています。
Core:Add系関数はこのPRでは削除していません。

APIの変更はASTノード追加によるものです。

related #706

Why

Additional info (optional)

@marihachi marihachi marked this pull request as ready for review August 2, 2024 18:46
@marihachi marihachi requested review from syuilo and uzmoi August 3, 2024 14:27
@marihachi marihachi merged commit a30c150 into master Aug 3, 2024
4 checks passed
@marihachi marihachi deleted the work/infix-ops branch August 3, 2024 22:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants