You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 27, 2023. It is now read-only.
Expanding on the idea of #25 it would be cool to enable embedded scripts that generate parts of the MPL program. This would require MPL to package a full language Interpreter.
Because MPL is written in Java, embedded groovy scripts are a good option.
An embedded script could look like this:
/saynormalMPLcodecompiletime {
for (iin1..10) {
println"/generated line ${i}"
}
}
Instead of the keyword compiletime we could use embedded or groovy.
For security reasons it is important to restrict embedded scripts from accessing the file system or internet.
The text was updated successfully, but these errors were encountered:
First of all the syntax is quite easy and you still can to pretty much everything you can with groovy and second the library is tiny compared with the groovy library.
Expanding on the idea of #25 it would be cool to enable embedded scripts that generate parts of the MPL program. This would require MPL to package a full language Interpreter.
Because MPL is written in Java, embedded groovy scripts are a good option.
An embedded script could look like this:
Instead of the keyword
compiletime
we could useembedded
orgroovy
.For security reasons it is important to restrict embedded scripts from accessing the file system or internet.
The text was updated successfully, but these errors were encountered: