double_quotes doesnt return codes in SWI-Prolog
- From: "blindsearch" <dpatte3@xxxxxxxxxxx>
- Date: 21 May 2005 16:19:01 -0700
I'm using SWI-Prolog 5.4.7, i've read the manual and the default
behaviour for double_quotes is to return the code i.e "A" -> 65.
This works if I'm using the Prolog prompt but in my code, it doesnt,
I've tried setting it set_prolog_flag(double_quotes,codes)
it doesnt work, I've tried setting it to all the other possible values,
nothing works.
Here's my code:
read_entrys("@",Stream) :- % after @, read in the type
!, get0(Stream,C), read_type(C,Stream).
read_entrys(_C,Stream) :- % ignore anything else
read_entrys(Stream).
The first clause never unifies.
I don't want to resort to read_entrys(64,Stream) ...
.
- Follow-Ups:
- Re: double_quotes doesnt return codes in SWI-Prolog
- From: Jan Wielemaker
- Re: double_quotes doesnt return codes in SWI-Prolog
- Prev by Date: Re: ANN: Prolog Server Pages
- Next by Date: Re: Efficiently finding combinations
- Previous by thread: help with parsing and dcg (swi-prolog in particular)
- Next by thread: Re: double_quotes doesnt return codes in SWI-Prolog
- Index(es):
Relevant Pages
|
|