Menu

#23 Fix for null DCG rules

open
None
5
2012-09-16
2008-02-13
No

The following does not compile on JLog 1.3.6 (represents a null terminal):

s --> [].

This code change to jDCG.makeDCGBaseCompoundTerm in jDCG.java add support for a Null List in the DCG:

250c250,257
< if (rt instanceof jListPair)


if (rt instanceof jNullList)
{jUnify un;

terms.addTerm(un = new jUnify());

pr.addElement(new dcgUnifyPredicateUpdate(un));
}
else if (rt instanceof jListPair)
382c389
<


Fix will appear in next version of JLog

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.