Jump to content
  • Advertisement
Sign in to follow this  
theOcelot

GNU Prolog confusion

This topic is 3531 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

On a whim, I picked up Programming in Prolog, just for the sake of learning a new weird language, to expand my thinking. I read the first few chapters, then downloaded GNU Prolog. Now when I open the interactive interpreter, the prompt is "| ?-", which seems to mean that it wants questions directly. But the examples in the book seem to show entering facts into the prompt, but it doesn't seem to like it when I do that. So I can't do the examples in the book, and I'm stuck. What am I missing?

Share this post


Link to post
Share on other sites
Advertisement
Type "[user]." to start the editing mode. Press Ctrl-D to leave editing mode, which will compile everything you've written since you started and make it available for querying.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!