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

fn #210

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

fn #210

wants to merge 1 commit into from

Conversation

syuilo
Copy link
Collaborator

@syuilo syuilo commented Aug 30, 2022

What

Resolve #179

Why

Additional info (optional)

@codecov
Copy link

codecov bot commented Aug 30, 2022

Codecov Report

Base: 77.41% // Head: 77.41% // No change to project coverage 👍

Coverage data is based on head (28903fe) compared to base (b9018de).
Patch has no changes to coverable lines.

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.
📢 Do you have feedback about the report comment? Let us know in this issue.

@@ -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? _* "}"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

これって:は型の指定をする時の記号だけど、これを=>にするという意図?

Copy link
Collaborator Author

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? _* "}"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ありふれている記号列ではスペースや改行の扱いはよく検討する必要がありそう

@syuilo syuilo marked this pull request as ready for review August 30, 2022 14:23
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.

@ を fn にする?
2 participants