mthom / scryer-prolog

A modern Prolog implementation written mostly in Rust.
BSD 3-Clause "New" or "Revised" License
1.93k stars 116 forks source link

Top-level exits when given a certain command #2425

Closed stevemolloy closed 1 week ago

stevemolloy commented 1 week ago

Using the following command causes scryer to print to screen (as expected), but then immediately exits back to the command line without an error.

$ scryer-prolog plc01.pl
?- json(J), flowmeter_json(J, Flowmeter), write(Flowmeter), halt.

The plc01.pl file that I start prolog with can be found here: https://raw.githubusercontent.com/stevemolloy/prolog_mps/main/plc01.pl

stevemolloy commented 1 week ago

Never mind. I am an idiot.