Hi,
Is it possible to write grammar for If-else in Prolog?
If yes, Please can some one give me a rough idea of the grammar.
Thanks,
SUDHA
IF-Else in Prolog
Started by navred, Feb 10 2005 04:44 AM
1 reply to this topic
#1
Posted 10 February 2005 - 04:44 AM
#2
Posted 11 March 2005 - 09:50 AM
navred said:
What grammar?have and as "," or "if" as :-
words parsing W in the tree
"A tall man loves this clever woman"
W
NP (Nominal phrase) VP (Verbal phrase)
domains
list symbol*.
predicates
sentence(list,list).
noun_phrase(list,list).
verb_phrase(list,list).
adj_noun(list,list).
.........................
clauses
sentence(List,Rem):-
...........................
Goal: sentence(W). -> true
that all
good parsing
vertexs L T Y W
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users












