summaryrefslogtreecommitdiff
path: root/example.pl
diff options
context:
space:
mode:
authorPeter Mikkelsen <peter@pmikkelsen.com>2021-07-05 16:27:38 +0000
committerPeter Mikkelsen <peter@pmikkelsen.com>2021-07-05 16:27:38 +0000
commit44ab8a339c78bcc3460d44b2f435116f21faa60a (patch)
treefa512c143c5df81c0c333a187b9083cbac9636f6 /example.pl
parent3f26a0f2a1f699e628136ec5be6178b5ab40fc44 (diff)
First step on modules. Still very very rough.
Diffstat (limited to 'example.pl')
-rw-r--r--example.pl2
1 files changed, 2 insertions, 0 deletions
diff --git a/example.pl b/example.pl
index 6633ff0..f99a3b3 100644
--- a/example.pl
+++ b/example.pl
@@ -1,3 +1,5 @@
+:- module(example, []).
+
math(A,B,C,D) :- D is A + B + C * A.
parentest :-