Fixing example from Naurin Zamir
This commit is contained in:
parent
32a1d9a769
commit
13ff06aee5
|
@ -99,7 +99,13 @@
|
|||
(syntax-parse
|
||||
stx
|
||||
[sym:id
|
||||
(list #'sym)]
|
||||
(cond
|
||||
[(identifier-binding #'sym 0)
|
||||
empty]
|
||||
[(char-upper-case? (string-ref (symbol->string (syntax->datum #'sym)) 0))
|
||||
(list #'sym)]
|
||||
[else
|
||||
empty])]
|
||||
[sym:expr
|
||||
empty]))
|
||||
(define head-vars (datalog-literal-variables #'head))
|
||||
|
|
4
collects/tests/datalog/examples/student.rkt
Normal file
4
collects/tests/datalog/examples/student.rkt
Normal file
|
@ -0,0 +1,4 @@
|
|||
#lang datalog
|
||||
friend(arnold,arnold).
|
||||
student(arnold,arnold,arnold) :- friend(arnold,arnold).
|
||||
student(arnold,arnold,arnold)?
|
1
collects/tests/datalog/examples/student.txt
Normal file
1
collects/tests/datalog/examples/student.txt
Normal file
|
@ -0,0 +1 @@
|
|||
student(arnold, arnold, arnold).
|
Loading…
Reference in New Issue
Block a user