Rework parsing structure
This commit is contained in:
parent
a4ec29f084
commit
b9f419a59d
17 changed files with 246 additions and 278 deletions
12
tests/parser/resources/parent.pl
Normal file
12
tests/parser/resources/parent.pl
Normal file
|
@ -0,0 +1,12 @@
|
|||
male(john).
|
||||
male(jimmy).
|
||||
female(mary).
|
||||
parent(john, jimmy).
|
||||
parent(mary, jimmy).
|
||||
father(X, Y) :- parent(X, Y), male(X).
|
||||
mother(X, Y) :- parent(X, Y), female(X).
|
||||
|
||||
:- write(hello),
|
||||
nl.
|
||||
|
||||
:- write(hello2).
|
Reference in a new issue