next up previous contents
Next: How to Extract Up: Parsing in Prolog Previous: Prolog Grammar Rules

To Use the Grammar Rules

Set a goal of the form



sentence([the
man
ate
a
cake]
[])

[-5pt]

and not as


sentence.

[-5pt]

or


sentence([the
man
ate
a
cake])

[-5pt]



Paul Brna
Mon May 24 20:14:48 BST 1999