DCGs (Definite Clause Grammars) are a compact way to describe lists in Prolog.
Interview question! This is how you normally define the member relation in Prolog: member(X, [X|_]). % member(X, [Head|Tail]) …
list prolog dcgI've only been working with Prolog for a couple days. I understand some things but this is really confusing me. …
list prolog flatten dcg difference-listsI'd like to read a plain text file and apply a predicate to each line (the predicates contain write which …
io prolog swi-prolog dcgI am trying to write a predicate palindrome/1 in Prolog that is true if and only if its list input …
prolog palindrome dcgI am trying my hands on SWI-Prolog in win xp. I am trying to understand how to split a sentence …
prolog swi-prolog dcgQuestion So I've recently came up with some new possible projects that would have to deal with deriving 'meaning' from …
nlp dcgIs there a way to check if a string is a substring of another string in Prolog? I tried converting …
prolog substring dcg subsequenceWhat are the uses of SML in the real word? Are its practical uses similar to that of Prolog?
prolog sml dcg