Closed jez closed 2 years ago
yeah, i put more effort into having good error locations etc for sml errors, while the cm error reporting is far more rudimentary.
in this case i’m thinking the error is because the class (the thing after the :
) isn’t understood by millet. specifically “succ-ml”. millet only knows about a few classes, and actually allows processing even fewer (cm and sml only).
i think instead of having an exhaustive list of classes (i think it’s possible to define arbitrary cm classes with user code?) i could just keep it a string and then only accept some, like “sml”, “cm”, and “cmfile”. that would improve the error here
i think there are actually two separate issues here:
Environment
Steps to reproduce
Expected behavior
no error
Actual behavior
It would be nice to at least know which line number of the CM file failed to parse, so I could know what the problem is. The contents of the CM file in question: