Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.postscript > #3441

Re: JSON reader/writer in PostScript

X-Received by 2002:a05:620a:65d:: with SMTP id a29mr7272800qka.285.1567749951435; Thu, 05 Sep 2019 23:05:51 -0700 (PDT)
X-Received by 2002:a37:e58:: with SMTP id 85mr7058071qko.403.1567749951221; Thu, 05 Sep 2019 23:05:51 -0700 (PDT)
Path csiph.com!xmission!news.snarked.org!border2.nntp.dca1.giganews.com!nntp.giganews.com!o24no4046128qtl.0!news-out.google.com!c11ni109qtp.0!nntp.google.com!o24no4046120qtl.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail
Newsgroups comp.lang.postscript
Date Thu, 5 Sep 2019 23:05:50 -0700 (PDT)
In-Reply-To <1567559086.bystand@zzo38computer.org>
Complaints-To groups-abuse@google.com
Injection-Info glegroupsg2000goo.googlegroups.com; posting-host=24.107.176.41; posting-account=G1KGwgkAAAAyw4z0LxHH0fja6wAbo7Cz
NNTP-Posting-Host 24.107.176.41
References <1567559086.bystand@zzo38computer.org>
User-Agent G2/1.0
MIME-Version 1.0
Message-ID <0ae78b2f-89f4-4b6b-9c5e-75fd39ca7f69@googlegroups.com> (permalink)
Subject Re: JSON reader/writer in PostScript
From luser droog <luser.droog@gmail.com>
Injection-Date Fri, 06 Sep 2019 06:05:51 +0000
Content-Type text/plain; charset="UTF-8"
Lines 10
Xref csiph.com comp.lang.postscript:3441

Show key headers only | View raw


On Tuesday, September 3, 2019 at 8:20:26 PM UTC-5, ne...@zzo38computer.org.invalid wrote:
> I wrote a program in PostScript for reading/writing JSON data. You can use
> the following functions:
> /.JSON.namech 256 string def
> .JSON.namech 43 1 put %+
> JSON.namech 45 1 put %-
> .JSON.namech 46 1 put %.

I'd be tempted to write '(+) 0 get' instead of '43'. A little less
efficient perhaps, but this part is one-time setup code so not 
critical. But using a string makes the comments unnecessary.

Back to comp.lang.postscript | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

JSON reader/writer in PostScript news@zzo38computer.org.invalid - 2019-09-04 01:19 +0000
  Re: JSON reader/writer in PostScript luser droog <luser.droog@gmail.com> - 2019-09-05 23:05 -0700
    Re: JSON reader/writer in PostScript luser droog <luser.droog@gmail.com> - 2019-09-06 22:06 -0700
  JSON reader/writer in PostScript (second version) news@zzo38computer.org.invalid - 2019-09-08 21:32 +0000
    Re: JSON reader/writer in PostScript (second version) luser droog <luser.droog@gmail.com> - 2019-09-12 19:11 -0700
      Re: JSON reader/writer in PostScript (second version) luser droog <luser.droog@gmail.com> - 2019-09-14 19:50 -0700
        Re: JSON reader/writer in PostScript (second version) news@zzo38computer.org.invalid - 2019-09-15 18:34 +0000
    Re: JSON reader/writer in PostScript (second version) luser droog <luser.droog@gmail.com> - 2019-09-13 19:53 -0700

csiph-web