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.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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.