goby icon indicating copy to clipboard operation
goby copied to clipboard

[WIP] #677 Ternary Expression Implementation

Open Alexius-Huang opened this issue 5 years ago • 3 comments

I'm trying.

Issue #677

Alexius-Huang avatar Oct 20 '19 15:10 Alexius-Huang

Codecov Report

Merging #794 into master will increase coverage by 0.02%. The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #794      +/-   ##
==========================================
+ Coverage    80.3%   80.32%   +0.02%     
==========================================
  Files          54       54              
  Lines        7417     7417              
==========================================
+ Hits         5956     5958       +2     
+ Misses       1234     1233       -1     
+ Partials      227      226       -1
Impacted Files Coverage Δ
compiler/parser/parser.go 94.07% <ø> (ø) :arrow_up:
compiler/token/token.go 100% <ø> (ø) :arrow_up:
compiler/parser/expression_parsing.go 70% <ø> (ø) :arrow_up:
compiler/lexer/lexer.go 95.6% <100%> (+0.73%) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 7ae1131...0c8c71e. Read the comment docs.

codecov[bot] avatar Oct 20 '19 15:10 codecov[bot]

👍 Although I seldom find ternary expression useful (too hard to find 3 expressions all simple and short enough to put into the same line). I'm quite curious about what the implementation would be.

st0012 avatar Oct 23 '19 04:10 st0012

@Maxwell-Alexius any update on this?

st0012 avatar Feb 14 '20 15:02 st0012