Skip to Content
Programming Languages: Concepts and Implementation
book

Programming Languages: Concepts and Implementation

by Saverio Perugini
December 2021
Beginner
840 pages
47h 29m
English
Jones & Bartlett Learning
Content preview from Programming Languages: Concepts and Implementation

14.11 Applications of Logic Programming

Applications of logic/declarative programming include cryparithmetic problems, puzzles (e.g., tic-tac-toe), artificial intelligence, and design automation. In this section, we briefly introduce some other applications of Prolog and CLIPS.

14.11.1 Natural Language Processing

One application of Prolog is natural language processing (Eckroth 2018; Matthews 1998)—the search engine used by Prolog naturally functions as a recursive-descent parser. One could conceive facts as terminals and rules as non-terminals or production rules. Consider the following simple grammar:

A list of seven grammar rules.
Description

Using this grammar, a Prolog ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Concepts and Semantics of Programming Languages 1

Concepts and Semantics of Programming Languages 1

Therese Hardin, Mathieu Jaume, Francois Pessaux, Veronique Viguie Donzeau-Gouge
Programming C# 10

Programming C# 10

Ian Griffiths

Publisher Resources

ISBN: 9781284222739