JSAbrahams / mamba

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

Implement `FromStr` for `AST` #457

Closed JSAbrahams closed 1 year ago

JSAbrahams commented 1 year ago

Relevant issues

Summary

This is more idiomatic Rust.

codecov[bot] commented 1 year ago

Codecov Report

Merging #457 (9f0fd3a) into develop (d8e4a9b) will increase coverage by 0.01%. The diff coverage is 94.95%.

@@             Coverage Diff             @@
##           develop     #457      +/-   ##
===========================================
+ Coverage    88.20%   88.22%   +0.01%     
===========================================
  Files          105      105              
  Lines        11501    11503       +2     
===========================================
+ Hits         10145    10148       +3     
+ Misses        1356     1355       -1     
Impacted Files Coverage Ξ”
src/check/mod.rs 69.38% <66.66%> (ΓΈ)
src/parse/mod.rs 70.00% <73.33%> (ΓΈ)
src/check/constrain/generate/collection.rs 97.53% <100.00%> (ΓΈ)
src/check/constrain/mod.rs 100.00% <100.00%> (ΓΈ)
src/check/context/mod.rs 97.65% <100.00%> (+0.75%) :arrow_up:
src/lib.rs 86.15% <100.00%> (-0.11%) :arrow_down:
src/parse/call.rs 93.91% <100.00%> (ΓΈ)
src/parse/class.rs 88.09% <100.00%> (ΓΈ)
src/parse/collection.rs 94.91% <100.00%> (ΓΈ)
src/parse/control_flow_expr.rs 92.95% <100.00%> (ΓΈ)
... and 7 more