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

For range #111

Merged
merged 6 commits into from
Feb 25, 2019
Merged

For range #111

merged 6 commits into from
Feb 25, 2019

Conversation

zegl
Copy link
Owner

@zegl zegl commented Feb 24, 2019

This adds support for for/range

  • for k, v := range []int{10, 20, 30}
  • for k := range []int{10, 20, 30}
  • for range []int{10, 20, 30}
  • for _, v := range []int{10, 20, 30}
  • for _, v := range []int{10, 20, 30}
  • for k, v := range []int{10, 20, 30}[1:]
  • for k, v := range map
  • for k, v := range array
  • for k, v := range functions

Updates #41

@codecov-io
Copy link

codecov-io commented Feb 24, 2019

Codecov Report

Merging #111 into master will increase coverage by 1.2%.
The diff coverage is 88.67%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master     #111     +/-   ##
=========================================
+ Coverage   83.61%   84.82%   +1.2%     
=========================================
  Files          34       35      +1     
  Lines        2576     2662     +86     
=========================================
+ Hits         2154     2258    +104     
+ Misses        341      323     -18     
  Partials       81       81
Impacted Files Coverage Δ
compiler/parser/node.go 10% <ø> (+0.24%) ⬆️
compiler/parser/parser.go 84.21% <100%> (+0.14%) ⬆️
compiler/parser/range.go 60% <60%> (ø)
compiler/parser/for.go 69.69% <68%> (+4.47%) ⬆️
compiler/compiler/for.go 97.87% <97.01%> (-2.13%) ⬇️
compiler/compiler/types.go 93.12% <0%> (+1.52%) ⬆️
compiler/lexer/lexer.go 98.9% <0%> (+21.97%) ⬆️

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 b785dbb...213d57f. Read the comment docs.

@zegl zegl marked this pull request as ready for review February 25, 2019 20:38
@zegl zegl merged commit db3cbde into master Feb 25, 2019
@zegl zegl deleted the basic-for-range branch February 25, 2019 20:38
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.

2 participants