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,533
  • 12
  • 98
  • 192
lunar
  • 1,122
  • 7
  • 18
  • 28

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
  • 21,302
  • 34
  • 45