Reputation: 4171
Using the Alloy API, it is possible to get from an alloy file a CompModule that contains all the things you need in order to play around with that given alloy module.
This is easily achieved using : CompUtil.parseEverything_fromFile(...)
My question now is the following. Is there a way to go from a CompModule to alloy language ? Or to go from a list of sigs, and facts to alloy model. ( I guess I could do it brute force, but I'd rather like to know if there's an utility existing.)
Thanks for your support !
Cheers
Upvotes: 3
Views: 106
Reputation: 3857
I don't think there is already some kind of a visitor (or something) that takes a CompModule
and produces a textual Alloy file. Implementing such a printer should be pretty straightforward, but also time consuming.
Upvotes: 2