This version of Learn Prolog Now! embeds SWI SH , SWI-Prolog for SHaring. The current version rewrites the Learn Prolog Now! HTML on the fly, recognising source code and example queries. It is not yet good at recognising the relations between source code fragments and queries. Also Learn Prolog Now! needs some updating to be more compatible with SWI-Prolog. All sources are on GitHub:
LearnPrologNow LPN SWISH Proxy SWISH

Chapter 7
Definite Clause Grammars

This chapter has two main goals:

  1. To introduce context free grammars (CFGs) and some related concepts.
  2. To introduce definite clause grammars (DCGs), a built-in Prolog mechanism for working with context free grammars (and other kinds of grammar too).

eXTReMe Tracker
© 2006-2012 Patrick Blackburn, Johan Bos, Kristina Striegnitz