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
		
			
				
	
	
		
			27 lines
		
	
	
		
			549 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			27 lines
		
	
	
		
			549 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
include "common.iol"
 | 
						|
include "ui/swing_ui.iol"
 | 
						|
include "console.iol"
 | 
						|
 | 
						|
outputPort Exam {
 | 
						|
Location: Location_Exam
 | 
						|
Protocol: sodep
 | 
						|
Interfaces: ExamInterface
 | 
						|
}
 | 
						|
 | 
						|
main
 | 
						|
{
 | 
						|
	question.studentName = "John";
 | 
						|
	question.examName = "SPLG";
 | 
						|
	question.question = "Random question";
 | 
						|
	makeQuestion@Exam( question )( answer );
 | 
						|
	showYesNoQuestionDialog@SwingUI( "Do you want to accept answer " + answer + " ?" )( decision );
 | 
						|
 | 
						|
	message.studentName = "John";
 | 
						|
	message.examName = "SPLG";
 | 
						|
	if ( decision == 0 ) {
 | 
						|
		pass@Exam( message )
 | 
						|
	} else {
 | 
						|
		fail@Exam( message )
 | 
						|
	}
 | 
						|
}
 |