Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
3
Task/Shell-one-liner/Prolog/shell-one-liner-1.pro
Normal file
3
Task/Shell-one-liner/Prolog/shell-one-liner-1.pro
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
$ swipl -g "writeln('hello world')." -t 'halt.'
|
||||
hello world
|
||||
$
|
||||
3
Task/Shell-one-liner/Prolog/shell-one-liner-2.pro
Normal file
3
Task/Shell-one-liner/Prolog/shell-one-liner-2.pro
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
$ gprolog --init-goal "write('goodbye'),nl,halt"
|
||||
goodbye
|
||||
$
|
||||
2
Task/Shell-one-liner/Prolog/shell-one-liner-3.pro
Normal file
2
Task/Shell-one-liner/Prolog/shell-one-liner-3.pro
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
$ yap -q -g "current_prolog_flag(dialect, D), writeln(D), halt"
|
||||
yap
|
||||
5
Task/Shell-one-liner/Prolog/shell-one-liner-4.pro
Normal file
5
Task/Shell-one-liner/Prolog/shell-one-liner-4.pro
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
$ swipl -q <<< "current_prolog_flag(dialect,D), writeln(D), halt."
|
||||
swi
|
||||
|
||||
$ yap -q <<< "current_prolog_flag(dialect,D), writeln(D), halt."
|
||||
yap
|
||||
5
Task/Shell-one-liner/Prolog/shell-one-liner-5.pro
Normal file
5
Task/Shell-one-liner/Prolog/shell-one-liner-5.pro
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
$ echo "current_prolog_flag(dialect,D), writeln(D), halt." | swipl -q
|
||||
swi
|
||||
|
||||
$ echo "current_prolog_flag(dialect,D), writeln(D), halt." | yap -q
|
||||
yap
|
||||
Loading…
Add table
Add a link
Reference in a new issue