Import Cryptol enum types as SAWCore datatypes - #3373
Conversation
Previously it would only parse recursors for types whose names were `Ident`s.
|
The only important test failure is in This PR won't be ready until I implement class dictionaries for enum-derived datatypes. One way to do it would be to define a special "representation" function for each datatype that converts it to the old-style nested-eithers-and-products form. Then we could reuse the existing dictionary constructors added in #3307, and lift them to the datatypes using the rep function. |
|
How is the namespacing for Cryptol-imported enums handled? For instance, if you import two enums named
That would work, although I'd be a bit sad to have to still rely on the sum-of-products even after switching to a SAWCore datatype representation---the latter was supposed to subsume it! |
WIP