Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.postscript > #3442
| Newsgroups | comp.lang.postscript |
|---|---|
| Date | 2019-09-06 22:06 -0700 |
| References | <1567559086.bystand@zzo38computer.org> <0ae78b2f-89f4-4b6b-9c5e-75fd39ca7f69@googlegroups.com> |
| Message-ID | <ec2e85e9-5302-4b59-a2dc-2e50651061da@googlegroups.com> (permalink) |
| Subject | Re: JSON reader/writer in PostScript |
| From | luser droog <luser.droog@gmail.com> |
On Friday, September 6, 2019 at 1:05:51 AM UTC-5, luser droog wrote:
> 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.
And you could put them all in a single string and loop through it.
/.JSON.namech 256 string def
(+-.) { .JSON.namech exch 1 put } forall
Back to comp.lang.postscript | Previous | Next — Previous in thread | Next in thread | Find similar
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