-
- @Test
- public void testSeq() throws Exception {
- String expressionText = "Sequences.runSequence mdo\n" +
- " repeatForever mdo\n" +
- " Sequences.wait 2\n" +
- " Sequences.stop";
-
- try {
- Object result = new ExpressionEvaluator(runtimeEnvironment, expressionText)
- .parseAsBlock(true)
- .eval();
- } catch(SCLExpressionCompilationException e) {
- System.out.println(CompilationErrorFormatter.toString(expressionText, e.getErrors()));
- throw e;
- }
- }