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

feat: 式に符号を使えるように #852

Merged
merged 2 commits into from
Nov 15, 2024

Conversation

takejohn
Copy link
Contributor

What

単項演算子の正号 +・負号 -が数値リテラル以外の式にも使用できるようになります。
正号のノードはPlus、負号のノードはMinusになります。
符号の付いた数値リテラルは従来通り単一の数値リテラルとして扱います。

Why

Resolve #43

Additional info (optional)

@codecov-commenter
Copy link

codecov-commenter commented Nov 13, 2024

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

Attention: Patch coverage is 78.78788% with 7 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
src/interpreter/index.ts 68.18% 7 Missing ⚠️

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Files with missing lines Coverage Δ
src/node.ts 85.71% <ø> (-12.66%) ⬇️
src/parser/syntaxes/expressions.ts 95.18% <100.00%> (+5.99%) ⬆️
src/parser/visit.ts 100.00% <100.00%> (+5.26%) ⬆️
src/interpreter/index.ts 95.07% <68.18%> (+9.27%) ⬆️

... and 26 files with indirect coverage changes

@takejohn takejohn merged commit 6118f9e into aiscript-dev:master Nov 15, 2024
4 checks passed
@takejohn takejohn deleted the feat/43_unary-sign-operators branch November 15, 2024 11:19
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.

式にマイナスを使えない
4 participants