Thursday, August 20, 2015

Artificial Intelligence. Your first Perkun program.

Perkun (to obtain from is a strict form programming language. A program in Perkun consists of four sections and any number of commands:
  • values section
  • variables section
  • payoff section
  • model section
  • commands
The simplest Perkun program is:
values {}
variables {}
payoff {}
model {} 

When you place the above text in a file (for example test.perkun) and run:
$ perkun test.perkun

it will do nothing. That is correct. But if you remove any of the sections you will get an error. Also correct.

Take a look at the Perkun wiki:
It describes the Perkun specifications in more details.

1 comment: