Articles in this series
Welcome to the "Programming in Pilog" series! I guess it's quite likely that you have never heard of Pilog before. Short definition: By using Pilog, we can do logical programming within PicoLisp. In this post, we will explain what logical programmin...
Before we actually start off with Pilog, I thnk it will be good to take a few minutes to talk about Prolog, which is the basis of Pilog. A brief history of PROLOG The Prolog programming language appeared in 1972. It was developed and implemented in ...
This post follows the tutorial from "Learn Prolog Now!", Chapter 1. The goal of this post is to introduce the basic concept and syntax of Pilog and to write some first small programs. The Knowledge Base In imperative programming, the programmer lite...
In the last post, we have seen how we can create a knowledge base and run queries on it. Today we will try to understand how Prolog computes the result of a query. This chapter is based on this Prolog tutorial. What is Unification? Let's check the ...
In the last post, we discussed briefly the backtracking search algorithm. Let's explore this topic a little further as it's an important concept in Pilog programming. This post is based on this tutorial. A recursive example Let's illustrate the conc...
Today we will talk about an important data structure which is often used in Pilog programming: Lists. This post is based on this tutorial. What is a list in Pilog? Basically, it's the same like in PicoLisp: A sequence of elements. Here are some exam...