March 2014 update
This commit is contained in:
parent
09687c4926
commit
a25938f123
1846 changed files with 21876 additions and 5203 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
|
||||
2
Task/Shell-one-liner/TXR/shell-one-liner-2.txr
Normal file
2
Task/Shell-one-liner/TXR/shell-one-liner-2.txr
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
$ txr -p '(+ 2 2)'
|
||||
4
|
||||
3
Task/Shell-one-liner/TXR/shell-one-liner-3.txr
Normal file
3
Task/Shell-one-liner/TXR/shell-one-liner-3.txr
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
$ txr -e '(mkdir "foo" #o777)'
|
||||
$ ls -ld foo
|
||||
drwxrwxr-x 2 kaz kaz 4096 Mar 4 23:36 foo
|
||||
Loading…
Add table
Add a link
Reference in a new issue