forked from hflicka/example-mlms
-
Notifications
You must be signed in to change notification settings - Fork 1
/
hello_world.mlm
52 lines (44 loc) · 1.28 KB
/
hello_world.mlm
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
// You may run this MLM with: $ arden2bytecode -r hello_world.mlm
/*
* The maintenance category covers general information used for developing
* this Medical Logic Module (MLM).
*/
maintenance:
title: Hello World;;
mlmname: hello_world;;
arden: Version 2.5;;
version: 1.81;;
institution: arden2bytecode authors;;
author: Hannes Flicka;;
specialist: Mike Klimek;;
date: 2016-12-07;;
validation: testing;;
/*
* This category contains additional metadata about the medical knowledge
* contained in this module.
*/
library:
purpose: Demonstration of Arden Syntax;;
explanation: Prints 'Hello World!';;
keywords: hello world; example; Arden Syntax;;
citations: ;;
links: 'https://plri.github.io/arden2bytecode/docs/';;
// This section contains - among other stuff - the actual program logic.
knowledge:
type: data_driven;;
data:
// Define the greeting variable to be the string "Hello world!"
LET greeting BE "Hello, World!";
;;
evoke:
// This MLM is called directly, so no evoke statement is required.
;;
logic:
// The 'CONCLUDE' statement decides whether to execute the action slot.
CONCLUDE TRUE;
;;
action:
// The actual output.
WRITE greeting;
;;
end: