[Add Language] Jolie (#3574)

* added support for Jolie language

* added support for Jolie language

* added samples for Jolie
This commit is contained in:
thesave
2017-04-26 20:04:25 +02:00
committed by Colin Seymour
parent f146b4afbd
commit eb38c8dcf8
11 changed files with 262 additions and 2 deletions

29
samples/Jolie/student.ol Normal file
View File

@@ -0,0 +1,29 @@
include "common.iol"
include "ui/swing_ui.iol"
include "console.iol"
outputPort Exam {
Location: Location_Exam
Protocol: sodep
Interfaces: ExamInterface
}
inputPort StudentInput {
Location: "socket://localhost:8001/"
Protocol: sodep
Interfaces: StudentInterface
}
main
{
request.studentName = "John";
request.examName = "SPLG";
request.student.location = "socket://localhost:8001/";
request.student.protocol = "sodep";
startExam@Exam( request );
makeQuestion( question )( answer ) {
showYesNoQuestionDialog@SwingUI( question.question )( answer )
};
sendMessage( message );
println@Console( message )()
}