I have written a small demo program for Svarog. It is called dorban, it can be downloaded from https://sourceforge.net/projects/dorban/ .
I will describe it on my website https://www.perkun.org .
I have written a small demo program for Svarog. It is called dorban, it can be downloaded from https://sourceforge.net/projects/dorban/ .
I will describe it on my website https://www.perkun.org .
I have added to the github repository for Svarog a new test, test5. It is activated by running "make test5" in the examples folder. It is based on the Svarog specification examples/example3_dorban.svarog .
When you run the test5 it is good to have an assistance of multiple svarog daemons. The client should have a configuration file /home/$USER/.svarog/svarog.ini in place.
The specification contains three hidden variables and five localizations. The localizations are connected as follows:
The input variables are:
In test5 Dorban immediately meets Pregor in Krakow (alive), asks him to join him, then they go together to Warszawa, do not find vampire here, then they go to Poznan and meet the vampire. The first attack is succesfull, but the second one fails and Pregor (still alive) is not accompanying Dorban any more. Then Dorban asks Pregor to accompany him, Pregor accepts, they both attack the vampire and the attack fails. Pregor dies. When Dorban sees that Pregor is dead he knows he would not ever become living any more, and Dorban decides to attack the vampire on his own.
The svarog with all the examples can be downloaded from https://github.com/pawelbiernacki/svarog.
svarog-0.0.3 has been released! It contains apart from the interpreter (svarog) also a daemon (svarog-daemon) and a helper program: svarog-dummy-client. Now when working in an interactive mode (command loop) svarog will try to use the svarog-daemons (if configured so). Svarog is a bit slower than Perkun because it does not create a memory cache for the model, but it is much more powerful due to the support of the svarog-daemons.
Download svarog-0.0.3 from https://www.perkun.org/Download
A new version of svarog (0.0.2) has been released. It has some minor improvements. Currently the negative numeric literals are allowed (unary minus is supported). This can be useful when defining payoff.
Svarog 0.0.2 is available for download from my page https://www.perkun.org