-
Notifications
You must be signed in to change notification settings - Fork 39
文法エラーに位置情報を追加 #413
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
文法エラーに位置情報を追加 #413
Conversation
Codecov ReportAll modified lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## aiscript-next #413 +/- ##
================================================
Coverage ? 90.44%
================================================
Files ? 25
Lines ? 5136
Branches ? 943
================================================
Hits ? 4645
Misses ? 481
Partials ? 10 ☔ View full report in Codecov by Sentry. |
|
👍👍👍 |
|
@marihachi 今気づいたんですが、locのインデックスが1始まりになっているっぽいです。0始まりに修正お願いします。 |
|
locはインデックスではないです |
|
|
|
ソースコード上の位置はコードエディタなどで行1,列1から始まってますよね |
|
内部的な表現としては0始まりで持っておいて人間への表示時は+1するというのも考えられる |
|
パーサー内部では行も列も0始まりで扱ってるのでどちらにも出来ますけど |
This comment was marked as outdated.
This comment was marked as outdated.
|
ただ行と列の番号で演算をすることはなさそうな? |
|
ちょっと他のツールとか調査しますか |
|
0始まりが好きな人も1始まりが好きな人もいるようなので、どちらが優れているというわけではなさそうです。 |
|
1で |
了解です |
What
関連 #144
Why
Additional info (optional)