[To reply replace "Aaron.Sloman.XX" with "A.Sloman"]
"Michael Worsley" <mjw@praxis-cs.co.uk> writes:
> Date: Thu, 5 Apr 2001 12:57:54 +0100
>
> Quicky question: how do you turn off backslash-escaping within strings?
> (Preferably without rebuilding poplog)
> This is a result of '\' belonging to character class 12
I think it is class 3
> ..-- does anyone know
> how I can shift this to class 1 within prolog?
In a pop11 procedure invoked from prolog try this:
1 -> item_chartype(`\\`);
If you want it to be only temporary do this in a Pop-11 procedure
that invokes your prolog stuff
dlocal %item_chartype(`\\`)% = 1;
See HELP item_chartype, REF itemise/Classes, HELP dlocal
I am assuming that Poplog Prolog uses the same itemiser as pop-11.
If not it may be necessary to do some searching in the prolog
sources to see what to change,e.g. probably in
$usepop/pop/plog/src/itemise.p
Must rush now. So I have not looked.
It would be trivial (with help) to build a new version of prolog
that had the change built in, though I don't know if anything
would break as a result.
It would NOT be necessary to relink poplog, or rebuild pop11.
Aaron
====
Aaron Sloman, ( http://www.cs.bham.ac.uk/~axs/ )
School of Computer Science, The University of Birmingham, B15 2TT, UK
EMAIL A.Sloman AT cs.bham.ac.uk (ReadATas@please !)
PAPERS: http://www.cs.bham.ac.uk/research/cogaff/
FREE TOOLS: http://www.cs.bham.ac.uk/research/poplog/freepoplog.html
|