JSAbrahams / mamba

🐍 The Mamba programming language, because we care about safety
MIT License
85 stars 3 forks source link

Remove with token in match and create With construct #114

Closed JSAbrahams closed 5 years ago

JSAbrahams commented 5 years ago

Relevant issues

Fixes #112

Summary

Makes match more lightweight. This token, however, can be used for a With construct (Similar to using resources in Python).

Added Tests

codecov[bot] commented 5 years ago

Codecov Report

Merging #114 into master will decrease coverage by 0.14%. The diff coverage is 76.31%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #114      +/-   ##
==========================================
- Coverage   83.53%   83.39%   -0.15%     
==========================================
  Files          65       65              
  Lines        4319     4372      +53     
==========================================
+ Hits         3608     3646      +38     
- Misses        711      726      +15
Impacted Files Coverage Ξ”
src/parser/control_flow_expr.rs 87.93% <ΓΈ> (-0.21%) :arrow_down:
src/core/mod.rs 69.39% <0%> (-2.77%) :arrow_down:
src/parser/ast.rs 24.3% <0%> (-0.52%) :arrow_down:
src/core/construct.rs 31.19% <0%> (-0.89%) :arrow_down:
src/parser/expr_or_stmt.rs 100% <100%> (ΓΈ) :arrow_up:
tests/parser/valid/control_flow.rs 86.69% <100%> (ΓΈ) :arrow_up:
src/lexer/mod.rs 96.95% <100%> (ΓΈ) :arrow_up:
src/lexer/token.rs 89% <100%> (ΓΈ) :arrow_up:
tests/parser/valid/error.rs 100% <100%> (ΓΈ) :arrow_up:
src/parser/statement.rs 91.66% <100%> (+5.95%) :arrow_up:
... and 4 more

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 614b794...98c962d. Read the comment docs.