Re: HELP! Prefix operator precedence error message

From: Jan Wielemaker (jan_at_ct.xs4all.nl)
Date: 04/27/04


Date: 27 Apr 2004 17:11:08 GMT

In article <ba2190a1.0404270850.3a8e08d8@posting.google.com>,
FirewallVictim wrote:
> Could someone please help/advise with a small prolog problem i'm
> having. Im fairly new to prolog and im only a beginner programmer. I
> developed a small prolog program based on eliza in SWI-prolog for
> windows but when i try and migrate it to UNIX im getting an error
> message. Any advice would be much appreciated.
>
> Code runs in windows but not in unix.
>
> append([],L2,L2).
> append([H|L1],L2,[H|L3]):-
> append(L1,L2,L3).
>
> % Redefine append as ...
>:- op(900,fy,'...').
> ...(X,Y,Z) :- append(X,Z,Y).
>
> response(Response List) -->
> ..._, [keyword], ..._.
>
>
> Error Message: Prefix operator precedence too high (HERE being where
> error occurs)
>
> response(Response List) --> <<HERE>>
> ..._, [keyword], ..._.
>
> I get the feeling unix or prolog doesnt like the use of ... or the way
> the rule is defined. Any pointers?

I don't think Unix can be involved in any way. Neither is SWI-Prolog,
unless it is a modified version. First of all the Windows and Unix
versions are fully compatible, certainly as far as the parser is
concerned. Second, it doesn't know the error message "operator
precedence too high", so it can't be SWI-Prolog :-)

        --- Jan



Relevant Pages

  • Re: A short but unsuccessful script for calling a Java app.
    ... The error message is: ... > Your file has windows line endings instead of unix line ... Presumably you created the script using a windows editor ... > and transferred the file to your unix machine. ...
    (comp.lang.java.programmer)
  • RE: problems moving solaris nis accounts into AD using sua
    ... Migrating from UNIX to Windows Server 2003 ... Migrate from UNIX ... Using the Data Migration Wizard we ... | received the error message for every map that we have tried to migrate. ...
    (microsoft.public.windows.server.migration)
  • HELP! Prefix operator precedence error message
    ... Im fairly new to prolog and im only a beginner programmer. ... Code runs in windows but not in unix. ... Error Message: Prefix operator precedence too high (HERE being where ...
    (comp.lang.prolog)
  • Re: Prolog - Displaying Error Messages
    ... error message to the user if something fails inside a predicate, ... This produces the error message (you may have something ... the concept of exceptions before learning Prolog. ...
    (comp.lang.prolog)
  • Re: H=[K] ? (Re: Need help with flattening a list)
    ... In Turbo prolog, almost all the assignments are made by =/2, thus ... the error message, but that only made me think that H=just caused ... assignment can't be done by ISO prolog. ... You are not a fool, ...
    (comp.lang.prolog)