Skip to content

Instantly share code, notes, and snippets.

@kowey
Created August 13, 2014 12:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kowey/1d4c67e76781fdfb48bf to your computer and use it in GitHub Desktop.
Save kowey/1d4c67e76781fdfb48bf to your computer and use it in GitHub Desktop.
main(L) :-
datr_query('TEST', [unwords|L], Vs),
foreach(member(V,Vs), write(V)),
nl,
halt.
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
.
@kowey
Copy link
Author

kowey commented Aug 13, 2014

See DATR: A Language for Lexical Knowledge Representation (Evans and Gazdar 1996) for more about DATR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment