DCGs from streams
- From: Damien Kick <dkixk@xxxxxxxxxxxxx>
- Date: Sun, 08 Jul 2007 19:08:36 GMT
I have quite a few sources, e.g. _Prolog Programming for Artificial Intelligence_, of examples and explanations of using DCGs to specify parsing of natural languages. However, I am looking for examples, either books or code, of using DCGs to do things like parse messages as is done in network programming. For example, using a DCG to both read a message from a socket (or a file (or anything else which acts as the source for a stream of octets)) while parsing it at the same time because, for example, one must parse the stream to determine when the end of a message on that stream has been received. Or, to use a DCG, or something like a DCG, for parsing of binary message formats from a stream as opposed to from a list, as is typical of what I find in the Prolog literature with which I'm a familiar.
.
- Follow-Ups:
- Re: DCGs from streams
- From: PheniX
- Re: DCGs from streams
- From: Cameron Hughes
- Re: DCGs from streams
- Prev by Date: Re: Question from a Prolog dummy
- Next by Date: Re: plc, a compiled approach for Prolog
- Previous by thread: Multithreading in SWI-Prolog
- Next by thread: Re: DCGs from streams
- Index(es):
Relevant Pages
|
|