summaryrefslogtreecommitdiff
path: root/example.pl
diff options
context:
space:
mode:
authorPeter Mikkelsen <peter@pmikkelsen.com>2021-06-29 17:51:20 +0000
committerPeter Mikkelsen <peter@pmikkelsen.com>2021-06-29 17:51:20 +0000
commit6ae2e2bb7bebdc3f4d450f1ddc6c69a02c3f4998 (patch)
tree303dec4cb3ead70d4e108d0138c561d65d660268 /example.pl
parent2d7f3ffa770b6eb698566b6566d7e37f10193744 (diff)
Parse lists and {a,b,c} syntax (What is this even called?)
Diffstat (limited to 'example.pl')
-rw-r--r--example.pl7
1 files changed, 6 insertions, 1 deletions
diff --git a/example.pl b/example.pl
index dce8533..67c0db3 100644
--- a/example.pl
+++ b/example.pl
@@ -11,4 +11,9 @@ likes(sam, ice).
could_be_friends(Person1, Person2) :-
likes(Person1, Thing1),
likes(Person2, Thing2),
- Thing1 = Thing2. \ No newline at end of file
+ Thing1 = Thing2.
+
+list1(A) :- A = [1,2,3,4].
+list2(A) :- A = [a,b|c].
+
+curly(A) :- A = {one,two,three}. \ No newline at end of file