Posts

Showing posts from January, 2020

Prolog DCG "distilled" - Part 2

Welcome back to this 2 Part introduction to DCGs, more posts are to come. Jumping straight on where Part 1 was left, and in order to understand the inner workings of the conc_sep predicate, one can now: - activate the graphical debugger in the swipl-win tool menu - prepend a "trace, " before the actual DCG test run: ?- trace, test_conc_sep_3(Bird1, Bird2). from that point on my colleague Dr Scratch is taking over and presenting you the steps involved: https://scratch.mit.edu/projects/356943603/     ( duration: 5' ) enjoy !