summaryrefslogtreecommitdiff
path: root/example.pl
diff options
context:
space:
mode:
authorPeter Mikkelsen <peter@pmikkelsen.com>2021-06-29 17:58:18 +0000
committerPeter Mikkelsen <peter@pmikkelsen.com>2021-06-29 17:58:18 +0000
commit64a411ede2df42eea0e6905a4985a3e54057c677 (patch)
tree91dd1d06b06bbe76ffa0c6fd5b604a3a71964469 /example.pl
parent6ae2e2bb7bebdc3f4d450f1ddc6c69a02c3f4998 (diff)
Parse terms in parenthesis correctly
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).