Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#23 Fix for null DCG rules

open
Glendon Holst
None
5
2012-09-16
2008-02-13
Glendon Holst
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