-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
More EMG examples #31
Comments
Many thanks for sharing this example; I had it on my to-do list to create an EMG example for the PSL metamodel but you beat me to it :) It'd be great if you could contribute it with a pull request under the "Basic Examples" category with the id "emg". A few minor comments on the example itself:
|
Thanks for the suggestions. I'll leave it like this right now - https://eclipse.dev/epsilon/playground/?471036c1, and I'll open a PR soon. Also, are we sure |
Solved in #32 |
Good catch - it should be |
I don't really know how EMG works, and the Petri Net example was too academic, so I tinkered a bit with the Playground and generated a model for a seemingly simple scenario such as the projects metamodel to get a grasp of the language.
To my surprise, it involved a series of interesting challenges I discovered along the way:
pre
which are consumed withnextFromCollection
in the code; not ideal. Perhaps a CSV panel in the playground would help.list
,@probability
and straightforwardpattern
s is tricky. Namely:I managed to solve some of these constraints, but others may need more hacking or smarter EPL patterns.
Would an example like this be useful for the Playground? If so, with a bit of help for polishing, I think we could add it.
The text was updated successfully, but these errors were encountered: