Prolog Beginner's Tutorial: 'Compiling' Your First Prolog Program using GNU Prolog

preview_player
Показать описание
Let's write your first prolog program. We'll use GNU Prolog to get it done!

In this video, I walk you through a brief tutorial just to get you started. I'm going to show you how to

2. Create your first "program".
3. Create your first fact.
4. Create your first rule.
5. Create your first query.
6. Comments: line and block.

You can download the version of Prolog used in this video here:

If you have any comments, see anything crazy, notice any mistakes, etc, please feel free to mention it in the comments below.

// Consider supporting this channel in multiple ways //
Bitcoin: 177wfkQwzXiC8o2whQMVpSyuWUs95krKYB
Dogecoin: DRK2HDp3ZkkbFpvGZnVgMVosnBhPv8r3uP
Рекомендации по теме
Комментарии
Автор

fixed it, EXCELLENT, MANY THANKS, it was my worst lesson when i was at the university, now after 18 years with my mind more clear i start to understand it . :)

peterkosmas
Автор

On a mac, using homebrew you can simply do: `brew install gnu-prolog`, then to use in terminal: `gprolog`

meganpaffrath
Автор

Thank you, sir! Great tutorial for newcomers.

cyrusdavidpastelero
Автор

great(Name):-
write('Hi Prof', Name), tab(2), write('thank you for tutorial'),
write(Name).

rosaniarose
Автор

i use the uppercase example but i allways get no . Is there some kind of setting for this to set the variable ?

peterkosmas
Автор

how to clear screen? I tried the suggestions below but nothing happens.

dorrislintao
Автор

loops...Loops ... LOOOP, is there a way to irritate though and print numbers in decreasing order ?
tanks.

tanjimsm
Автор

the first part of this video, after changing directory, i wrote down just as you with the file. "[demo]." But it didn't work with this error message. "uncaught exception: error(system_error('error trying to execute pl2wam (maybe not found)'), consult/1)". I already searched the resolution for it. there is no answer with it. do you know how to handle this error?

voicihojun
Автор

Hi,
I recently installed GNU Prolog on my Mac. I wonder, is there any console for this programming language on Mac? I really need to work with it, so please help me if you know how I should do that.

negarmaleki
Автор

Sir I need help can you do Davis putnam SAT procedure in prolog. Please

ahsanalikhan