JSAbrahams / mamba

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

Create Type enum #65

Closed JSAbrahams closed 5 years ago

JSAbrahams commented 5 years ago

Relevant issues

This will not only come handy in the type checker but also during the desugar stage. This is a stepping stone towards for instance #19 and #64. Therefore, even without a type checker, we still need knowledge of types to convert certain language construct to Python code.

Summary

For instance, when we assign to a value, we need to know whether it is a tuple or not. Instead of creating another custom alias in the desugarer, it is probably better to re-use the types from the type checker (which is still to be written).

Added Tests

Cannot test enum

Additional Context

...

codecov[bot] commented 5 years ago

Codecov Report

Merging #65 into master will not change coverage. The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master      #65   +/-   ##
=======================================
  Coverage   80.09%   80.09%           
=======================================
  Files          57       57           
  Lines        3893     3893           
=======================================
  Hits         3118     3118           
  Misses        775      775

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 1cdd755...cc153df. Read the comment docs.