summaryrefslogtreecommitdiff
path: root/example.pl
diff options
context:
space:
mode:
Diffstat (limited to 'example.pl')
-rw-r--r--example.pl5
1 files changed, 5 insertions, 0 deletions
diff --git a/example.pl b/example.pl
index 67c0db3..f5305d9 100644
--- a/example.pl
+++ b/example.pl
@@ -2,6 +2,11 @@
math(A,B,C,D) :- D is A + B + C * A.
+parentest :-
+ 1 + 2 * 3 + 4.
+parentest :-
+ (0 * (1 + 2) * 3) * 3 + 4.
+
true.
likes(bob, ice).