Path: csiph.com!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Carlos Newsgroups: comp.lang.postscript Subject: Re: html generator Date: Wed, 22 Mar 2017 22:02:32 +0100 Organization: A noiseless patient Spider Lines: 59 Message-ID: <20170322220232.3c641ccb@samara.DOMA> References: <3f057c06-9f44-4f91-9912-361bd7667bbe@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Injection-Info: mx02.eternal-september.org; posting-host="9fbc543158c22226be0882b6955b157d"; logging-data="21134"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19A/E3eVDUdk0jItRpnscYS2JSQu3ZHveg=" X-Newsreader: Claws Mail 3.14.1 (GTK+ 2.24.31; x86_64-pc-linux-gnu) Cancel-Lock: sha1:1eHKth4RUcyTYGOTHOMYabntWVI= Xref: csiph.com comp.lang.postscript:3010 [luser droog , 2017-03-21 22:44] > A friend and I are working on a webpage builder. As part of > our design process I wrote up a draft in postscript, knowing > that I could knock one out fairly quickly. > > So this is what I came up with, for the curious or the bored. > As I described the behavior to my friend, he replied "Oh, so > it's object-oriented postscript; that's frightening." > > It's meant to describe a control panel that will be "compiled" > into html/js. Nice. [...] > /wireless << > /Type /controls cvx > /afterburner { (Afterburner) [(Auto)(Enable)(Disable)] select } > /ap_isolation { (AP Isolation) check } > /authentication { (Authentication) [(Auto)(Shared Key)] select } > >> def [...] > /controls { > ( )= > { > 1 index /Type eq { > pop pop > }{ > exec > } ifelse > } forall > (
)= > } def [...] > > > > > > > > > >
Afterburner > Auto > Enable > Disable >
Authentication > Auto > Shared Key >
How did you ensure the order? (?) Btw, isn't it a shame Adobe made characters < / > syntax? An opportunity for a real nice DSL for XML/HTML was lost... --