-
Notifications
You must be signed in to change notification settings - Fork 0
000F picat run
Dmitry Ponyatov edited this page Nov 26, 2019
·
2 revisions
picat
can work both in batch and dialog modes:
$ picat hello.pi
Hello World
main =>
println("Hello World").
$ picat hello.pi with some parameters
*** Undefined procedure: main/1
This error means that procedure main/1
must be defined with 1 parameter:
main(Args) =>
printf("Hello with: %w\n",Args).
$ picat hello.pi with some parameters
Hello with: [with,some,parameters]
$ picat
Picat 2.7b12, (C) picat-lang.org, 2013-2019.
Type 'help' for help.
Picat> println("Iteractive Hello")
Iteractive Hello
yes
Picat> _
Next: