Giter Site home page Giter Site logo

Syntax error on load about edcg HOT 8 CLOSED

kamahen avatar kamahen commented on August 19, 2024
Syntax error on load

from edcg.

Comments (8)

eddiec avatar eddiec commented on August 19, 2024

Hmm, so I just noticed the comment on the front page about 8.3.something. I hadn't realised my ubuntu installation was that
far behind. I might have a bash at installing swipl manually.

from edcg.

kamahen avatar kamahen commented on August 19, 2024

The standard version of SWI-Prolog that comes with Ubuntu tends to be somewhat old.
However, the "=>" operator is quite new and I shouldn't have made it a requirement. (It's only in the latest "development" version of swipl)
I'll look at the code and figure out a way to remove "=>".

from edcg.

eddiec avatar eddiec commented on August 19, 2024

Many thanks.
On checking I find that 8.2.4 is actually the latest stable.
At this point I'm simply trying to understand the idea and whether it's what I need for the program I'm building so I imagine
everything will have fixed itself by the time I get my head round it!

from edcg.

kamahen avatar kamahen commented on August 19, 2024

A slightly older version of EDCG should be fine for you, but I'll have to figure out how to make the current EDCG backward-compatible.

The "development" version of SWI-Prolog is actually very stable. There are instructions for installing it here (no need to install manually): https://www.swi-prolog.org/build/PPA.html

from edcg.

kamahen avatar kamahen commented on August 19, 2024

As a quick fix, try this before :- use module(library(edcg)).:

:- op(1200, xfx, '=>').

For more details on what this does: https://www.swi-prolog.org/pldoc/man?section=operators

from edcg.

eddiec avatar eddiec commented on August 19, 2024

from edcg.

kamahen avatar kamahen commented on August 19, 2024

Fixed with commit 3b3fb89
Please re-open if you still have a problem.

from edcg.

kamahen avatar kamahen commented on August 19, 2024

I've added another example:
https://github.com/kamahen/edcg/blob/master/t/puzzle.pl

from edcg.

Related Issues (6)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.