Created
August 13, 2014 12:49
-
-
Save kowey/1d4c67e76781fdfb48bf to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
main(L) :- | |
datr_query('TEST', [unwords|L], Vs), | |
foreach(member(V,Vs), write(V)), | |
nl, | |
halt. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
TEST: | |
<sp> == ' ' | |
<unwords $any> == $any <sp> <unwords LocalPath:<> .> | |
<unwords> == % nb: base case not because of matching on empty path | |
% but only by virtue of above not matching | |
. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
See DATR: A Language for Lexical Knowledge Representation (Evans and Gazdar 1996) for more about DATR