Jean-Luc-Picard-2021
Jean-Luc-Picard-2021
I enjoy very much using the Ciao Prolog Playground! Especially the draggable split pane works very smooth. But it seems to me that the Syntax Highlighter does not really understand...
I tried first in Ciao Prolog playground: ``` ?- foreach(member(X,[1,2,3]), write(X)), nl. {ERROR: No handle found for thrown exception error(existence_error(procedure,'user:foreach'/2),'user:foreach'/2)} ``` On the other hand SWI-Prolog gives me: ``` ?-...
SWI-Prolog has call_nth/2, originally in library solution_sequences, but meanwhile also adopted by a few other Prolog systems in various locations, for the SWI-Prolog definition see here: > **call_nth(:Goal, ?Nth)** True...
Maybe this is an issue of `flush_output/1`. But I don't get this example working: ``` test :- write('Hello '), flush_output, pause(1), write('World!'), nl. ``` It waits but `Hello ` is...
Can I place a Logtalk Prolog text here, and run it?  For example this Logtalk example: ``` :- object(list). :- public(member/2). member(Head, [Head| _]). member(Head, [_| Tail]) :- member(Head,...
Tried to run this: ``` {"quote":"Winning isn’t everything, but wanting to win is.","author":"Vince Lombardi"}. {"quote":"I am not a product of my circumstances. I am a product of my decisions.","author":"Stephen Covey"}....
I can recompile Scryer Prolog by uncommenting this line in **src/lib/dcgs.pl**: ``` %% dcg_constr(\+ _). % 7.14.11 - not (existence implementation dep.) ``` And then `DCG not` works, although not...
I get for example: ``` $ target/release/scryer-prolog -v "v0.9.0-181-g8e9302ea" $ target/release/scryer-prolog ?- number_chars(X, "7.075657757024522e-7"). X = 7.075657757024522e-7. ?- json_chars(X, "7.075657757024522e-7", ""). X = number(7.075657757024521e-7) ``` The two results are different:...
I get this in Scryer Prolog: ``` $ target/release/scryer-prolog -v "v0.9.0-181-g8e9302ea" $ target/release/scryer-prolog ?- X = "foo¦bar". error(syntax_error(missing_quote),read_term/3:0). ?- [user]. :- op(1100,xfy,¦). error(syntax_error(unexpected_char),read_term/3:1). ?- ``` Whereas in SWI-Prolog I can...
[user] consult got a hiccup: ``` $ ./tpl -v Trealla Prolog (c) Infradig 2020-2022, v2.6.29 $ ./tpl ?- [user]. true. ``` Tested on WSL2. It doens't prompt for some clauses...