fn by syuilo ยท Pull Request #210 ยท aiscript-dev/aiscript

@syuilo

What

Resolve #179

Why

Additional info (optional)

@syuilo

@codecov

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.

marihachi


FnDef
= "@" s1:__* name:NAME s2:__* "(" _* args:Args? _* ")" ret:(_* ":" _* @Type)? _* "{" _* content:Statements? _* "}"
= "fn" _+ name:NAME s1:__* "(" _* args:Args? _* ")" _* ret:(_* "=>" _* @Type)? _* "{" _* content:Statements? _* "}"

Choose a reason for hiding this comment

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

ใ“ใ‚Œใฃใฆ:ใฏๅž‹ใฎๆŒ‡ๅฎšใ‚’ใ™ใ‚‹ๆ™‚ใฎ่จ˜ๅทใ ใ‘ใฉใ€ใ“ใ‚Œใ‚’=>ใซใ™ใ‚‹ใจใ„ใ†ๆ„ๅ›ณ๏ผŸ

Choose a reason for hiding this comment

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

ใ‚ใƒผใใ†
ใคใ„ใงใซ=>ใซใ—ใฆใฟใŸ(Rustใจใ‹ใ ใจใใ†)

marihachi

// function expression

Fn = "@(" _* args:Args? _* ")" ret:(_* ":" _* @Type)? _* "{" _* content:Statements? _* "}"
Fn = "(" _* args:Args? _* ")" _* ret:(_* ":" _* @Type)? _* "=>" _* "{" _* content:Statements? _* "}"

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