UniFormal / MMT

The MMT Language and System
https://uniformal.github.io/
Other
68 stars 23 forks source link

MMT as a parser framework for Scala APIs #368

Open florian-rabe opened 6 years ago

florian-rabe commented 6 years ago

@Jazzpirate @jbetzend @kohlhase

This is not urgent but a nice new feature that could be seriously useful for external people. It could be a good student project.

This is inspired by recent work by Jansson et al, which do the same ad hoc and for a limited type theory in Haskell. There is a paper on it, possibly forthcoming.

Consider any Scala API (not necessarily MMT-related). We want to automatically parse strings into it in a safe way.

We can do that as follows:

florian-rabe commented 6 years ago

It would be even better if the MMT theory weren't needed at all.

Instead, the programmer could annotate the Scala classes/methods that should be exposed. The new MMT component could collect the annotated declarations and build the theory in memory.