kamahen / edcg Goto Github PK
View Code? Open in Web Editor NEWThis project forked from mndrix/edcg
Extended DCG syntax for Prolog by Peter Van Roy
License: MIT License
This project forked from mndrix/edcg
Extended DCG syntax for Prolog by Peter Van Roy
License: MIT License
This comment by Richard O'Keefe discusses why the original implementation of DCGs used C/3
instead of pushing the unification into the head:
https://swi-prolog.iai.uni-bonn.narkive.com/cOnL0aGn/push-back-lists-on-dcg-rule-heads
It is possible that a cut in an EDCG body would violate this; whether it's important is not clear.
The implementation of ==>>
uses '=/2instead of pushing the unification into the head; because
==>>uses
=>`, cuts are not likely in the body, so this is less of a problem.
Hello and happy new year !
I'm having some trouble tracing graphically a grammar using edcg.
I've described the issue in details here: SWI-Prolog/packages-xpce#24
However, I don't know if the issue is because of edcg or the graphical debugger, hence why this issue.
Thanks for your help !
Hi,
I just installed this with:
pack_install(edcg).
using swipl 8.2.4 on linux to my local directory.
Doing:
?- use_module(library(edcg)).
gets me:
ERROR: /home/eddie/.local/share/swi-prolog/pack/edcg/prolog/edcg.pl:54:43: Syntax error: Operator expected
ERROR: /home/eddie/.local/share/swi-prolog/pack/edcg/prolog/edcg.pl:59:33: Syntax error: Operator expected
true.
There seems to be a "=>" that wasn't there before.
Cheers,
Eddie
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.