We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The following DCG: subject --> modifier, noun.
modifier --> [the].
noun --> [cat]. noun --> [mouse].
when queried with: subject(X,[]).
produces: X = [the|_5] X = [the|_5]
Whereas: subject(L1, L3) :- modifier(L1, L2), noun(L2, L3).
modifier([the|X], X).
noun([cat|X], X). noun([mouse|X], X).
produces the following with the same query: X = [the,cat] X = [the,mouse]
The text was updated successfully, but these errors were encountered:
Hi. Are you using the latest version of Tau Prolog?
Sorry, something went wrong.
Hi,
I'm using "version": "0.3.4".
boblund
jariazavalverde
No branches or pull requests
The following DCG:
subject --> modifier, noun.
modifier --> [the].
noun --> [cat].
noun --> [mouse].
when queried with:
subject(X,[]).
produces:
X = [the|_5]
X = [the|_5]
Whereas:
subject(L1, L3) :- modifier(L1, L2), noun(L2, L3).
modifier([the|X], X).
noun([cat|X], X).
noun([mouse|X], X).
produces the following with the same query:
X = [the,cat]
X = [the,mouse]
The text was updated successfully, but these errors were encountered: