Re: Enhancement Request: Folding Whitespace

[email protected] (Bill Yerazunis) Sat, 27 Jun 2009 21:29:44 -0400 (EDT)
Newsgroups gmane.mail.spam.crm114
Message-ID <20090628012944.2EF983DE029@starbuck>
   From: Ger Hobbelt <[email protected]>

   On Sat, Jun 27, 2009 at 12:22 AM, Chris
   Babcock<[email protected]> wrote:
   >> I hear you. ;-)
   >
   > Almost. :-)

   A..ha..... (sjeesh. Had to look real close to see what I missed. It's the
   ...[[:graph:]]+\
	      [[:space:]]+....

   expanding to

   ...[[:graph:]]+           [[:space:]]+....

   there. Ouch. Completely overlooked it.
   That's why code my wrapped strings in C[+#]* as
     "a" \
     "b" \
     "c"
   instead, but you can't do that trick in crm script as it doesn't
   concatenate argument[section]s like that. :'-(
   Sorry, that's inherent to the language definition.

Aye...  note that if it were not for repeated "stuff" in quotes
in C, you wouldn't be able to do it in C either.

   > The issue here, though, was the behavior of whitespace in source code. I
   > had just spent several hours debugging a long regex that worked just
   > fine with egrep. The problem was that I expected leading whitespace in
   > my source code to just go away. I blamed it on burning out on RFC
   > research to write my first script, but in retrospect it all comes from
   > using python. :-)

   >> BTW, had a quick gander at your URLs; /index.html turns up empty;
   >
   > Thanks. I have more than a few Dutch users, so that was a nice catch.
   > The problem is probably the character set mismatch. It wouldn't be
   > noticed in any native English browser, so I wouldn't have caught it
   > until final validation.

   You're welcome.
   BTW, the browser and box is full English setup (Dutch is a very fine
   language, but not in my computer user interfaces, thank you very much.
   I cringe at the translations in the menu's, etc. and despite this
   being my dad's workhorse, he's got a US English license 'n all - me
   being Mr. Sonny Support Tech implies he's more fluent in English now
   in his 70-ies than he was in his previous working life ;-) )

   If you check your server logs for the browser ID, it's probably IP
   82.72.205.* (DNS: *.almel1.ov.home.nl) - * because it's a box on a CAI
   provider network where you don't get a fixed IP, so my visit is surely
   logged under a different IP then I have right now.


   > Got it in one. This is the engine:
   >
   >        eval (:_dw:) /:*:headers::+:template:/
   >
   > The /includes/master.html file is the template. The body of the
   > referenced HTML document becomes the content division of the final
   > document. Eventually I'll include metadata. There's ~1500 lines of CRM
   > in this thing, including 150 in webtools/gamelist.crm that generate this
   > page:
   >
   > http://usak.asciiking.com/webtools/gamelist/fge00028
   >
   > The game map on that page is generated from an archive by a script that
   > uses ~50 lines of CRM to preprocess the archive and provide flow
   > control for the map creation process. Members of this mailing list
   > helped with memory use issues I had in that.

   Wow, this is becoming a major CRM114 web application :-)
   Well, crm114 script has very few potential hack/0wn paths (compared to
   genpurp PHP, perl et al) so with enough plugging the language could
   get a second life there. ;-)   (crm114 as a web micro-language...)

Thanks!  I'm glad to see that someone has noticed my intent to build a
language that's hard to p0wn from the data stream... "Death (or at
least segfault) before Dishonour!".



------------------------------------------------------------------------------
_______________________________________________
Crm114-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/crm114-general