users-prolog
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to parse large files with DCG?


From: Erick Alphonse
Subject: How to parse large files with DCG?
Date: Wed, 13 Oct 2004 12:55:39 +0200
User-agent: Mozilla Thunderbird 0.8 (X11/20040923)

Hello,

With DCG in gnu-prolog, do you know a way to directly parse a file from a stream instead of first processing the file into a list of tokens?

I know the trick of redefining the 'C'/3 to get a token from a stream, as explained in the Eclipse manual for example, but gnu-prolog does not seem to offer this predicate to the user.

Do you have any idea or trick to share?

Thanks a lot in advance,
Best regards,
Erick.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]