-
Notifications
You must be signed in to change notification settings - Fork 34
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
fn #210
base: master
Are you sure you want to change the base?
Conversation
Codecov ReportBase: 77.41% // Head: 77.41% // No change to project coverage 👍
Additional details and impacted files@@ Coverage Diff @@
## master #210 +/- ##
=======================================
Coverage 77.41% 77.41%
=======================================
Files 20 20
Lines 2759 2759
Branches 426 426
=======================================
Hits 2136 2136
Misses 615 615
Partials 8 8 Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
@@ -501,10 +501,10 @@ Args | |||
// define function statement | |||
|
|||
FnDef | |||
= "@" s1:__* name:NAME s2:__* "(" _* args:Args? _* ")" ret:(_* ":" _* @Type)? _* "{" _* content:Statements? _* "}" | |||
= "fn" _+ name:NAME s1:__* "(" _* args:Args? _* ")" _* ret:(_* "=>" _* @Type)? _* "{" _* content:Statements? _* "}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
これって:
は型の指定をする時の記号だけど、これを=>
にするという意図?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
あーそう
ついでに=>
にしてみた(Rustとかだとそう)
@@ -516,7 +516,7 @@ FnDef | |||
|
|||
// function expression | |||
|
|||
Fn = "@(" _* args:Args? _* ")" ret:(_* ":" _* @Type)? _* "{" _* content:Statements? _* "}" | |||
Fn = "(" _* args:Args? _* ")" _* ret:(_* ":" _* @Type)? _* "=>" _* "{" _* content:Statements? _* "}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ありふれている記号列ではスペースや改行の扱いはよく検討する必要がありそう
What
Resolve #179
Why
Additional info (optional)