<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Prolog on Living Systems_</title>
    <link>https://livesys.se/tags/prolog/</link>
    <description>Recent content in Prolog on Living Systems_</description>
    <generator>Hugo</generator>
    <language>en-us</language>
    <lastBuildDate>Tue, 22 Sep 2009 17:04:00 +0200</lastBuildDate>
    <atom:link href="https://livesys.se/tags/prolog/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>A Hello World program in SWI-Prolog</title>
      <link>https://livesys.se/posts/a-hello-world-prolog-program/</link>
      <pubDate>Tue, 22 Sep 2009 17:04:00 +0200</pubDate>
      <guid>https://livesys.se/posts/a-hello-world-prolog-program/</guid>
      <description>&lt;!-- raw HTML omitted --&gt;&#xA;&lt;p&gt;Then you can load the program from inside prolog after you&amp;rsquo;ve started&#xA;it.&lt;/p&gt;&#xA;&lt;p&gt;So, let&amp;rsquo;s start the prolog interactive GUI:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code class=&#34;language-prolog&#34; data-lang=&#34;prolog&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#c41a16&#34;&gt;prolog&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Then, in the Prolog GUI, load the file test.pl like so:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code class=&#34;language-prolog&#34; data-lang=&#34;prolog&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#c41a16&#34;&gt;?-&lt;/span&gt; [&lt;span style=&#34;color:#c41a16&#34;&gt;test&lt;/span&gt;].&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Now, if you had some prolog clauses in the test.pl file, you will be&#xA;able to extract that information by querying.&lt;/p&gt;&#xA;&lt;p&gt;A very simple test program that you could create is:&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
