titzer / virgil

A fast and lightweight native programming language
1.23k stars 44 forks source link

Shift DataNorm representation to VariantNorm #218

Closed btwj closed 7 months ago

btwj commented 7 months ago

This PR shifts the variant logic into VariantSolver.v3, and migrates away from the use of DataNorm to VariantNorm. VariantNorms are able to represent both enum-like variants (no fields) and single-case, flattened variants. This does not add any additional functionality.