0

I want to grab users input and operate on it. How can I do it? I will appreciate recommendations of good tutorials too, preferred online.

false
  • 10,264
  • 13
  • 101
  • 209
lunar
  • 1,172
  • 7
  • 18
  • 29

1 Answers1

1

If you want to read prolog terms/clauses, check this SWI Prolog section.

To read arbitrary text use the I/O predicates form here.

You might also use DCGs to operate on users input.

Also check some other answers from this site for some good prolog references.

Community
  • 1
  • 1
gusbro
  • 22,357
  • 35
  • 46