Prolog ?

By Stache, 20161219_

Prolog is a general-purpose logic programming language associated with artificial intelligence and computational linguistics.

Prolog has its roots in first-order logic, a formal logic, and unlike many other programming languages, Prolog is declarative: the program logic is expressed in terms of relations, represented as facts and rules. A computation is initiated by running a query over these relations.

– wpédia

Anyway I just learnt that I should know this language within two days so let us try.

Hello world, because traditions and stuff:

% This is a comment!
printHelloWorld :-
    write('Hello world !'),
    nl.
/* And these...
    ... are comments as well. */

Funny thing every line finishes with a PUNKT.

Prolog is dynamically typed (aka I don’t care of my variables’ type), with a single data type, the term. Subtypes: Atom (e.g. [], x, ‘stuff’, ‘other stuff’, …), numbers, variables, and compound (aka « functions »). Variables start with a capital letter constants with a lower case letter.

Prolog works with clauses. There are two kind of clauses, rules and facts

Rule: Head is TRUE if Body is TRUE.

Head :- Body.

Fact: a Head with a Body always TRUE.

truc(x, y).

 

 

147 Comments

  1. I must show my thanks to this writer for bailing me out of such a instance. Right after scouting throughout the internet and finding advice which are not beneficial, I was thinking my life was gone. Living without the approaches to the problems you have solved through the posting is a serious case, and the ones that would have adversely affected my career if I hadn’t encountered your blog post. Your personal knowledge and kindness in touching all things was vital. I don’t know what I would have done if I had not come upon such a stuff like this. I’m able to at this point look forward to my future. Thanks very much for this high quality and sensible guide. I will not be reluctant to propose your web blog to any person who desires direction about this problem.

  2. cheap jordans dit :

    I as well as my friends ended up checking out the nice thoughts found on your web site while unexpectedly I got a horrible feeling I had not thanked the web site owner for them. Most of the boys came certainly thrilled to read them and now have unquestionably been taking pleasure in these things. We appreciate you really being very considerate and also for settling on such important areas millions of individuals are really desperate to be aware of. My sincere regret for not expressing gratitude to earlier.

  3. I am writing to make you understand of the really good experience my friend’s daughter had checking yuor web blog. She picked up a wide variety of things, not to mention what it’s like to possess an awesome coaching nature to have many more with no trouble learn chosen grueling issues. You really surpassed readers’ expectations. Thanks for providing such invaluable, healthy, revealing and in addition fun thoughts on this topic to Jane.

  4. <a rel="follow" title="instagram takipci satin al

  5. <a rel="follow" title="instagram takipci satin al

  6.  » target= »_blank » href= »https://takipci.zartnet.com/ »>instagram takipci satin al

  7. <a rel="follow" title="instagram takipci satin al

  8. <a rel="follow" title="instagram takipci satin al

  9.  » target= »_blank » href= »https://takipci.zartnet.com/ »>instagram takipci satin al

  10. I wish to express my love for your kindness in support of visitors who have the need for help with this area. Your real dedication to passing the message around appeared to be quite useful and has in most cases enabled folks much like me to reach their dreams. Your new insightful recommendations means much to me and still more to my colleagues. Thanks a lot; from all of us.

  11. <a rel="follow" title="instagram takipci satin al

  12.  » target= »_blank » href= »https://takipci.zartnet.com/ »>takipci satin al

  13.  » target= »_blank » href= »https://takipci.zartnet.com/ »>takipci satin al

  14. My husband and i ended up being very thankful when John could carry out his reports by way of the ideas he had from your web page. It’s not at all simplistic just to find yourself freely giving guides other people might have been trying to sell. And we also consider we need the writer to be grateful to for that. All of the illustrations you’ve made, the easy web site navigation, the relationships your site help promote – it’s mostly unbelievable, and it’s assisting our son in addition to the family understand this topic is awesome, which is certainly incredibly fundamental. Thanks for all the pieces!

  15. yeezy boost dit :

    Thank you so much for providing individuals with a very superb chance to check tips from this web site. It’s usually very good and also full of fun for me and my office friends to visit your site at minimum 3 times every week to learn the newest tips you have got. And of course, we’re certainly astounded with your cool information you give. Selected 2 facts in this post are truly the most suitable we have all ever had.

  16. I simply wanted to post a quick remark in order to express gratitude to you for those stunning hints you are sharing here. My particularly long internet look up has at the end of the day been compensated with extremely good strategies to talk about with my great friends. I ‘d admit that many of us site visitors are definitely fortunate to be in a good website with many perfect professionals with useful tactics. I feel rather fortunate to have come across your entire website and look forward to tons of more fun minutes reading here. Thanks once more for all the details.

  17. reebok shoes dit :

    I not to mention my buddies have already been examining the excellent hints from your web page then before long I had an awful feeling I never expressed respect to the website owner for those techniques. The women ended up as a consequence very interested to read through them and have now certainly been taking pleasure in them. We appreciate you being quite kind as well as for choosing these kinds of important subjects most people are really desirous to understand about. Our own honest apologies for not expressing gratitude to you sooner.

  18. yeezy boost dit :

    I really wanted to construct a simple comment to be able to appreciate you for all of the fabulous advice you are giving at this site. My time-consuming internet look up has at the end been compensated with wonderful information to go over with my company. I ‘d state that that many of us visitors are undoubtedly lucky to live in a good place with many brilliant people with interesting secrets. I feel pretty blessed to have used your website and look forward to so many more entertaining minutes reading here. Thanks once again for everything.

  19. golden goose dit :

    My wife and i felt very glad that Jordan managed to deal with his investigations through your ideas he came across using your web page. It is now and again perplexing just to choose to be freely giving points that many men and women may have been selling. And we also fully understand we have the writer to appreciate for this. These explanations you made, the easy site menu, the relationships your site help to engender – it’s got all spectacular, and it is helping our son and us imagine that this idea is satisfying, and that is quite vital. Thanks for all the pieces!

  20. yeezy shoes dit :

    I simply desired to appreciate you yet again. I am not sure the things that I would have done without the opinions shared by you about my subject. It seemed to be an absolute frightening case for me, nevertheless noticing your skilled avenue you resolved it made me to weep with delight. I am thankful for this help and then have high hopes you recognize what an amazing job that you are putting in instructing the mediocre ones through your web site. I am certain you haven’t got to know any of us.

  21. I definitely wanted to construct a simple note to be able to appreciate you for all of the superb tricks you are posting at this site. My time intensive internet investigation has now been honored with reasonable facts to share with my good friends. I ‘d express that we readers actually are unquestionably lucky to live in a notable place with so many marvellous individuals with good concepts. I feel extremely blessed to have used your site and look forward to some more amazing minutes reading here. Thank you once again for all the details.

  22. I together with my pals were found to be digesting the excellent tips on your web blog and so instantly got a terrible feeling I never expressed respect to you for those strategies. All the men came so warmed to learn all of them and have now actually been tapping into those things. We appreciate you being so helpful and for choosing this sort of superior issues most people are really eager to be aware of. My honest regret for not expressing gratitude to earlier.

  23. jordans dit :

    A lot of thanks for all your valuable efforts on this web site. My niece takes pleasure in managing investigation and it’s really easy to see why. Most people learn all about the dynamic mode you make both useful and interesting steps by means of your web site and encourage participation from website visitors about this area plus my girl has always been becoming educated a great deal. Take pleasure in the remaining portion of the year. You’re conducting a brilliant job.

  24. I actually wanted to send a simple note in order to thank you for those nice tips and hints you are giving at this website. My incredibly long internet lookup has now been paid with extremely good facts and techniques to exchange with my friends and classmates. I ‘d suppose that most of us visitors actually are unequivocally lucky to dwell in a magnificent place with so many brilliant professionals with very beneficial plans. I feel quite fortunate to have used your entire web site and look forward to many more awesome times reading here. Thank you once more for all the details.

  25. ultra boost dit :

    My wife and i felt quite relieved when Raymond could finish up his analysis with the precious recommendations he discovered out of the weblog. It’s not at all simplistic to just continually be releasing secrets that others have been trying to sell. We fully grasp we have you to give thanks to for this. The illustrations you have made, the easy blog menu, the relationships you help foster – it is everything remarkable, and it is aiding our son and the family consider that this issue is satisfying, and that’s highly important. Thanks for the whole thing!

  26. jordan shoes dit :

    I am just commenting to let you know what a superb experience our daughter gained reading your web page. She figured out a lot of details, most notably what it is like to possess a marvelous giving style to get the others without problems know specified impossible matters. You undoubtedly surpassed our expected results. Thanks for supplying those productive, trustworthy, explanatory and in addition unique tips on this topic to Kate.

  27. Thanks for your entire effort on this web site. My mum really likes conducting investigations and it is obvious why. Most people notice all regarding the powerful means you produce rewarding secrets via your blog and as well boost contribution from website visitors about this point plus our princess has always been becoming educated a great deal. Take pleasure in the rest of the year. You’re performing a stunning job.

  28. My wife and i felt absolutely comfortable when Edward managed to do his inquiry using the precious recommendations he acquired when using the web page. It is now and again perplexing just to continually be giving for free facts that many others have been making money from. And now we understand we have you to thank for this. The entire illustrations you’ve made, the straightforward blog menu, the relationships you make it possible to engender – it’s got all wonderful, and it’s really helping our son in addition to us imagine that the situation is pleasurable, and that’s seriously mandatory. Thank you for everything!

  29. chrome hearts dit :

    I not to mention my pals have been taking note of the good helpful tips located on your web blog and then quickly got an awful suspicion I never expressed respect to you for those secrets. All of the men had been consequently glad to read them and have actually been having fun with those things. Thank you for genuinely indeed considerate and then for opting for such ideal subject matter millions of individuals are really eager to be aware of. My honest apologies for not saying thanks to earlier.

  30. I’m commenting to make you understand what a wonderful discovery my princess had checking your web site. She came to understand many details, not to mention what it is like to have a wonderful giving nature to let men and women clearly completely grasp a number of very confusing topics. You actually surpassed people’s expectations. Many thanks for coming up with those important, safe, informative and even easy guidance on the topic to Tanya.

  31. yeezy boost dit :

    I want to voice my passion for your kind-heartedness giving support to men and women that absolutely need guidance on this particular niche. Your personal dedication to getting the solution all through had become exceedingly productive and has in every case helped women like me to realize their pursuits. Your new informative tutorial signifies this much a person like me and much more to my mates. Thank you; from all of us.

  32. Thank you so much for giving everyone a very pleasant possiblity to discover important secrets from here. It is always very good and packed with amusement for me personally and my office colleagues to visit your blog particularly 3 times per week to see the latest guides you have got. And lastly, I’m so always contented with your extraordinary methods you give. Certain 2 areas in this post are ultimately the most beneficial we’ve ever had.

  33. I in addition to my buddies appeared to be analyzing the nice ideas on your web blog then unexpectedly I had an awful suspicion I had not expressed respect to the web blog owner for them. All the guys are actually totally glad to read through all of them and now have pretty much been taking advantage of them. We appreciate you simply being so kind and then for considering such remarkable ideas millions of individuals are really eager to be aware of. My sincere regret for not saying thanks to earlier.

  34. I must express some appreciation to the writer just for rescuing me from such a difficulty. As a result of researching throughout the the net and seeing things which are not powerful, I believed my life was done. Existing minus the approaches to the difficulties you’ve resolved by way of your entire article content is a crucial case, and the ones which could have badly affected my career if I had not discovered your website. The training and kindness in controlling all areas was invaluable. I don’t know what I would’ve done if I had not discovered such a step like this. I am able to at this moment look forward to my future. Thank you very much for the skilled and effective help. I won’t think twice to suggest the website to any individual who desires guidance on this subject.

  35. I and also my pals ended up following the great key points from your web blog and so then developed a horrible feeling I had not thanked the web site owner for those secrets. Most of the young boys were absolutely excited to learn all of them and have in effect definitely been tapping into those things. Thanks for really being well thoughtful and also for using varieties of beneficial themes millions of individuals are really needing to discover. Our honest regret for not expressing gratitude to you sooner.

  36. I must show my appreciation to you just for rescuing me from such a instance. Right after browsing through the online world and obtaining basics which were not helpful, I assumed my entire life was done. Living without the solutions to the issues you’ve fixed through your review is a critical case, as well as ones that might have in a negative way damaged my entire career if I had not noticed your blog. The natural talent and kindness in taking care of all the details was very useful. I don’t know what I would’ve done if I hadn’t come across such a stuff like this. I’m able to at this moment look ahead to my future. Thank you so much for your reliable and amazing guide. I won’t hesitate to suggest the website to any individual who needs to have direction on this situation.

  37. fitflops dit :

    I precisely desired to appreciate you all over again. I do not know the things I could possibly have undertaken without the entire thoughts revealed by you over such theme. It absolutely was a real troublesome circumstance in my opinion, nevertheless discovering the very well-written style you handled it took me to jump over delight. Now i’m thankful for this work as well as wish you recognize what an amazing job you are always getting into teaching many people by way of your web page. Probably you haven’t met any of us.

  38. yeezy boost dit :

    I would like to point out my respect for your generosity supporting men and women who must have assistance with this important content. Your very own dedication to getting the solution all around was quite beneficial and has consistently permitted others much like me to arrive at their goals. This informative recommendations can mean a lot to me and much more to my office colleagues. Thank you; from everyone of us.

  39. instagram takipci satin al

  40. chrome hearts dit :

    Thanks so much for providing individuals with remarkably memorable possiblity to read in detail from this blog. It can be very great and jam-packed with a lot of fun for me and my office fellow workers to search your web site more than 3 times per week to study the newest things you will have. And lastly, I’m just always fascinated with all the effective creative concepts you serve. Some two points in this post are essentially the finest I have had.

  41. instagram takipci satin al

  42. instagram takipci satin al

  43. I am just writing to let you understand of the really good encounter my friend’s child developed studying your blog. She learned such a lot of things, not to mention what it is like to have a very effective teaching character to have the rest without difficulty fully grasp certain problematic topics. You actually exceeded her expectations. Many thanks for churning out such productive, trustworthy, informative and as well as fun thoughts on the topic to Ethel.

  44. air jordan dit :

    I wish to get across my gratitude for your generosity supporting those people who absolutely need help with the issue. Your special dedication to passing the message all around had become wonderfully insightful and has continuously enabled those much like me to arrive at their endeavors. Your interesting instruction means much a person like me and extremely more to my colleagues. With thanks; from each one of us.

  45. nike flyknit dit :

    I must convey my love for your kind-heartedness for persons that require guidance on this important topic. Your personal dedication to getting the solution along was rather good and have frequently enabled some individuals just like me to realize their goals. Your new warm and friendly information denotes a lot to me and even more to my fellow workers. Regards; from each one of us.

  46. I intended to draft you one very small remark so as to give thanks yet again considering the striking advice you have shared above. It’s so strangely open-handed with you to provide unhampered precisely what a number of us could have marketed as an ebook in order to make some money on their own, certainly considering that you could possibly have tried it in the event you considered necessary. The strategies as well served to be a great way to be aware that other individuals have similar zeal just as my personal own to learn great deal more regarding this condition. I think there are several more pleasurable moments ahead for folks who read your site.

  47. hermes belt dit :

    Thanks a lot for providing individuals with such a remarkable chance to check tips from this blog. It is often very terrific and stuffed with a good time for me and my office co-workers to search your website more than 3 times in a week to study the fresh things you have got. And definitely, I am usually fascinated with the impressive information you give. Some 1 ideas on this page are in reality the most beneficial we have ever had.

  48. My spouse and i have been very thrilled when Albert managed to finish up his reports with the ideas he received through the weblog. It’s not at all simplistic to just always be handing out steps people today could have been trying to sell. And now we understand we now have the website owner to be grateful to because of that. The explanations you have made, the straightforward site navigation, the relationships you will help foster – it is mostly sensational, and it is assisting our son in addition to us imagine that that situation is excellent, and that’s truly important. Thank you for everything!

  49. lebron 16 dit :

    Thank you for your entire hard work on this site. Kate enjoys managing internet research and it’s easy to see why. All of us hear all concerning the lively way you offer simple guidance through the web blog and as well welcome participation from other people about this point then my simple princess has been discovering a great deal. Take pleasure in the remaining portion of the new year. You have been performing a terrific job.

  50. I intended to put you the very small note to be able to thank you very much the moment again for all the great guidelines you’ve featured on this website. It has been so particularly open-handed with people like you to convey without restraint exactly what a number of us could have supplied as an e book to help with making some dough for themselves, and in particular seeing that you might have done it in the event you wanted. These principles additionally acted like a fantastic way to know that other individuals have similar fervor like my own to learn very much more in respect of this condition. I think there are some more enjoyable situations up front for people who scan through your blog post.

  51. off white dit :

    I simply needed to appreciate you yet again. I do not know the things that I would’ve gone through without the entire concepts shared by you on this industry. It was before a real terrifying matter for me, nevertheless spending time with your skilled strategy you solved that took me to cry over contentment. I will be happier for this help and pray you find out what an amazing job that you are putting in training other individuals using a blog. I am sure you haven’t got to know any of us.

  52. yeezy boost dit :

    Thank you for all of your efforts on this web page. My mom enjoys getting into research and it’s simple to grasp why. A number of us hear all concerning the powerful ways you convey practical strategies through this blog and even encourage response from others on the issue then my child is in fact understanding a lot. Have fun with the rest of the year. You’re doing a first class job.

  53. I as well as my buddies have been viewing the best tricks found on the blog and immediately I got a horrible feeling I never expressed respect to the website owner for those tips. All the ladies happened to be totally very interested to learn them and now have clearly been enjoying them. Thanks for being so considerate as well as for going for some ideal things most people are really needing to understand about. My sincere regret for not saying thanks to sooner.

  54. nike sneakers dit :

    Thank you so much for giving everyone an exceptionally special chance to check tips from this site. It’s usually very sweet and as well , stuffed with a good time for me personally and my office colleagues to search the blog at minimum 3 times per week to read the newest things you have. And definitely, I am certainly motivated with the impressive solutions served by you. Some 4 areas in this article are undeniably the most beneficial we’ve ever had.

  55. Needed to post you that bit of note so as to thank you once again over the beautiful knowledge you have discussed here. This has been simply pretty open-handed with people like you in giving freely what numerous people might have distributed for an e-book to end up making some money for their own end, most importantly considering that you might well have tried it in case you considered necessary. Those principles as well served like the great way to fully grasp that some people have the same keenness much like my own to see more related to this matter. I believe there are numerous more pleasant periods up front for people who go through your website.

  56. air max 90 dit :

    I wanted to write down a simple message to appreciate you for the awesome items you are writing here. My considerable internet lookup has now been paid with sensible information to write about with my relatives. I would express that most of us site visitors are definitely lucky to exist in a superb site with many wonderful people with great points. I feel extremely grateful to have seen the webpage and look forward to really more enjoyable moments reading here. Thank you once again for everything.

  57. Thanks for every one of your hard work on this website. My mom take interest in working on investigations and it’s easy to see why. I learn all relating to the powerful tactic you produce practical tactics on the blog and as well inspire response from website visitors about this concept while my simple princess is truly becoming educated a whole lot. Enjoy the rest of the year. Your carrying out a remarkable job.

  58. bape hoodie dit :

    Thank you so much for providing individuals with an exceptionally memorable chance to read articles and blog posts from this web site. It can be so excellent plus stuffed with a great time for me and my office fellow workers to visit your site particularly 3 times in a week to learn the fresh tips you will have. And indeed, I’m also at all times impressed with your awesome ideas you give. Selected 3 facts in this post are in truth the most beneficial we have had.

  59. Compiled below are three articles, written several years ago by TNI’s former Defense Editor, Dave Majumdar, that looks at these questions in depth, combined in one posting for your reading pleasure. With that said, let the debate begin.

  60. I must show appreciation to the writer just for rescuing me from such a predicament. Right after surfing through the world wide web and seeing techniques that were not powerful, I thought my life was well over. Living devoid of the approaches to the issues you have solved through the site is a crucial case, and the ones that could have negatively damaged my entire career if I hadn’t encountered your web site. The mastery and kindness in playing with all the stuff was important. I don’t know what I would have done if I hadn’t come upon such a step like this. I’m able to now relish my future. Thanks very much for this impressive and results-oriented help. I won’t hesitate to propose your site to anyone who should receive guidance on this topic.

  61. Thanks so much for providing individuals with an extremely remarkable opportunity to read critical reviews from this website. It really is so awesome plus packed with a great time for me personally and my office colleagues to search the blog the equivalent of three times in one week to study the newest guidance you have. Not to mention, I am just actually motivated with your unbelievable techniques served by you. Some 4 tips in this article are clearly the simplest I have ever had.

  62. Nike Shoes dit :

    « Why do I have to suffer? » Jackson asked. « Why do I have to wake up and she’s not here? »

  63. off white dit :

    My spouse and i were quite lucky when Louis could finish up his reports using the precious recommendations he grabbed out of your weblog. It is now and again perplexing just to continually be giving for free procedures which usually some other people have been making money from. We grasp we’ve got the writer to thank for that. All of the explanations you made, the simple site navigation, the relationships your site help instill – it’s most impressive, and it’s really leading our son in addition to our family reason why the article is excellent, and that is truly essential. Thanks for everything!

  64. Alabama football coach Nick Saban returned to work on Wednesday, less than two days after he underwent hip replacement surgery.

  65. Modesto Tith dit :

    Great info and straight to the point. I am not sure if this is in fact the best place to ask but do you guys have any thoughts on where to get some professional writers? Thanks 🙂

What do you think?

Laisser un commentaire

Votre adresse de messagerie ne sera pas publiée.