ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
It goes like this: I'm supposed to learn CLIPS by tomorrow (stupid university) and they gave us no tutorial or courses or books or examples.
First, I doubt that the university is stupid......
Second, what is the context of an assignment with no reference material and due in 1 day? As is, it does not seem credible. It took me MONTHS to learn C. (Mostly all leaked out now) In a week, I learned a few bits of Python, but it would take several more before I could do anything useful.
Besides asserting facts in the RHS of rules, you also can print out information using the printout function. CLIPS also has a carriage return/linefeed keyword called crlf which is very useful in improving the appearance of output by formatting it on different lines. For a change, the crlf is not included in parentheses. As an example,
CLIPS> (defrule duck
(printout t "quack" crlf)) ; Be sure to type in the "t"
==> Activation 0 duck: f-1
The output is the text within the double quotes. Be sure to type the letter "t" following the printout command. This tells CLIPS to send the output to the standard output device of your computer. Gen*erally, the standard output device is your terminal (hence the letter "t" after printout.) However, this may be rede*fined so that the standard output device is some other device, such as a modem or disk.
In the first year, we had a course for learning C. In the first course, the teacher gave us a paper with the basic key words, loops, etc, and then the next day we had a laboratory where we had to program in C. I already knew it, but for some group mates who saw it for the first time, it was pretty hard. We also had a course about matlab. The course talked only about math algorithms, and at the lab, they gave us a paper with the basic structures, and "ok, read it. You have 5 minutes. Then start solving the exercises" and if you called the assistant for help, it would be like "I don't know, you wrote the program, you should know what's wrong with it!" even if your question is "how do I initialise an array?"
Now we had this course, that is supposed to teach us diffrent ways of programming. We learn weird programming languages. We started with Scheme and Prolog, and yesterday we had the lab... "here is the paper with what CLIPS looks like. We weren't able to install a compiler on this linux, so you'll have to call me and I'll tell you if it works or not! Also, this is your homework for Saturday at midnight." Why weren't they able to install it? No idea, it took 20 seconds to install the program on my box at home...
Either way, I sort of found my answer... you have to do a reset before you run it... aka
And the hello world example works.
Still, any useful links anybody might have are welcomed
Hmm thanks ntubski, somehow I omitted to type in just clips (out of the assumption that i will get mostly websites with movie clips) and tried "clips tutorial" and stuff... My google skills fail me, must be the lack of sleep.
I see they have quite a big documentation on their website, it will make a good read. Thanks again
And yes, from what they told us, clips is something like lisp...