[fpc-pascal] character escaping with ^LETTER

Dmitry Boyarintsev skalogryz.lists at gmail.com
Mon Jan 19 17:13:36 CET 2015


On Mon, Jan 19, 2015 at 11:02 AM, leledumbo <leledumbo_cool at yahoo.co.id>
wrote:

>
> http://www.freepascal.org/docs-html/ref/refsu7.html
>

The beginning of the section. Shame on me.
"The compiler is rather sloppy about the characters it allows after the
caret, but in general one should assume only letters"

Looking at scanner.pas, characters are interpreted as following:
 '^' :
 begin
   readchar;
   c:=upcase(c);
   if c<#64 then
     c:=chr(ord(c)+64)
   else
     c:=chr(ord(c)-64);
  ...

thanks,
Dmitry
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20150119/867c135e/attachment.html>


More information about the fpc-pascal mailing list