mndrix / sweet

Sugar to make Prolog a little sweeter
The Unlicense
6 stars 0 forks source link

importing library(dcg/basics) #8

Open mndrix opened 10 years ago

mndrix commented 10 years ago

This code

:- use dcg/basics -> nonblanks//1, whites//0.

gives the error:

Type error: `file_path' expected, found `dcg/basics->nonblanks//1,whites//0' (a compound)

One should be able to import DCG predicates just like other predicates.

mndrix commented 10 years ago

This code

:- use dcg/basics.

gives this error

source_sink `dcg/basics' does not exist