mirror of
				https://github.com/KevinMidboe/linguist.git
				synced 2025-10-29 17:50:22 +00:00 
			
		
		
		
	* added support for Jolie language * added support for Jolie language * added samples for Jolie
		
			
				
	
	
		
			29 lines
		
	
	
		
			617 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			29 lines
		
	
	
		
			617 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
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 )()
 | 
						|
} |