Sign in to confirm you’re not a bot
This helps protect our community. Learn more
Definite Clause Grammars (DCGs)
213Likes
9,414Views
2022Jul 21
Prolog has a built-in grammar mechanism, Definite Clause Grammars (DCGs). A DCG describes a sequence, and allows us to conveniently reason about sequences manifested as lists. DCGs are a very versatile mechanism, and one of Prolog's greatest attractions. We use them for parsing, describing output, passing arguments implicitly, reading from files, and several other applications. More information: https://www.metalevel.at/prolog/dcg

Follow along using the transcript.

The Power of Prolog

6.06K subscribers