Ask Experts Questions for FREE Help !
Ask
    albear's Avatar
    albear Posts: 1,594, Reputation: 222
    Ultra Member
     
    #1

    Mar 28, 2009, 11:31 AM
    Anyone know how to work with PROLOG
    I get a load of system errors around this point 'Syntax error: Operator expected'

    /* Chickenpox */

    Symptoms(agitation, chickenpox).
    Symptoms(small red lesions/spots, chickenpox).
    Symptoms(mild flue-like, chickenpox).
    Symptoms(fever, chickenpox).
    Symptoms(body aches, chickenpox).
    Symptoms(headache, chickenpox).
    Symptoms(loss of appetite, chickenpox).
    Symptoms(nausea, chickenpox).

    Any help would be greatly appreciated
    Scleros's Avatar
    Scleros Posts: 2,165, Reputation: 262
    Hardware Expert
     
    #2

    Mar 28, 2009, 02:08 PM
    I don't know a thing about Prolog, but...

    Syntax errors in most languages are usually due to a typo or invalid characters in an expression that the parser doesn't comprehend. Look at the use of white space, ".", "-", and the "/" in your expressions. The latter tend to be arithmetic operators. Is it valid for Prolog? The location of the first error is usually the culprit. The remaining errors are the parser being confused.
    albear's Avatar
    albear Posts: 1,594, Reputation: 222
    Ultra Member
     
    #3

    Mar 28, 2009, 02:13 PM

    No it wasn't that, but you did make me think abit more and I sussed out it doesn't like more than one word before the commer, so I put in some '-' to connect the words and jobs a good'un :) thanks
    Scleros's Avatar
    Scleros Posts: 2,165, Reputation: 262
    Hardware Expert
     
    #4

    Mar 28, 2009, 02:25 PM
    I now know something about Prolog.

Not your question? Ask your question View similar questions

 

Question Tools Search this Question
Search this Question:

Advanced Search


Check out some similar questions!

How does POS retail tills work, cash registers with touch screens how do they work? [ 2 Answers ]

How does POS retail tills work, cash registers with touch screens how do they work? They are also known an point of sale and kiosks like the ones in mcdonalds or leisure centres


View more questions Search