Prolog Notes
SWI Prolog manual
|
Introduction
Introduction
Imperative programming
Factorial
|
script
Fibonacci sequence
Permutations of a list
Natural Language Processing - numbers
Left to right parse
difference lists
Attributes
DCG
DCG with attributes
sample script
Sequence of refinements
grammar
grammar with attributes
accepts missing thousands and hundreds
handles teens
auxiliary functions
io functions
Database extraction - Famous People
description of problem
sample sentences
|
io interface
part A:
raw grammar
|
script
part B:
``specialized'' grammar
|
script
part B:
``specialized'' grammar
|
script
part C:
full-blown interpreter
|
script
Shapes World
description of problem
example sentences
initial DCG
|
sample run
initial DCG annotated with comments for actions
|
sample run
DCG with actions added to grammar
|
sample run
DCG with actions and DEBUG output removed for ``realism''
|
sample run
Nim (pick-up sticks)
version A
|
script
version B
|
script
version D
|
script
version E
|
random.p
|
script
version F
|
script
version G
|
script
Template system with
backward chaining
lookup
course prerequisite structure