-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathhello_world.mlm
More file actions
36 lines (29 loc) · 856 Bytes
/
hello_world.mlm
File metadata and controls
36 lines (29 loc) · 856 Bytes
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
// You may run this MLM with: $ arden2bytecode -r hello_world.mlm
maintenance:
title: Hello World Example;;
mlmname: hello_world;;
arden: version 2.1;;
version: 1.0;;
institution: Peter L. Reichertz Institut;;
author: Hannes Flicka;;
specialist: Hannes Flicka;;
date: 2011-09-08;;
validation: testing;;
library:
purpose: Demonstration of Arden Syntax and read statement;;
explanation: n.a.;;
keywords: hello world, example, arden2bytecode, read statement;;
links: http://arden2bytecode.sf.net/ ;;
knowledge:
type: data-driven;;
data:
name := read {Enter your name};
stdout_dest := destination{STDOUT};
;;
evoke: ;; // MLM is called directly
logic:
conclude true;;
action:
write "Hello " || name || "! " at stdout_dest;
;;
end: