seems to be ECMA2021 ( GraalVM ) syntax and semicolon is expected at the end of the line before the line starting with “val dmxActions”.
Examples in the doc refer to DSL rule. Make sure to use the right script engine in the UI.
I see my wording was not good.
The interpreter seem to expect a semicolon at the end of the line.
It states semicolon expected but found dmxActions. this dmxActions is part of the second lne as far as I understand.
Nevertheless from the content of your post it is hard to say because it looks like the error message content
is different from the content of your examples.
Best would be to post the complete code that you use and the error message that is being created.
This should prevent misunderstanding and wrong interpretation.