Re: Enhancement Request: Folding Whitespace

Ger Hobbelt <[email protected]> Sat, 27 Jun 2009 16:05:09 +0200
Newsgroups gmane.mail.spam.crm114
Message-ID <[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.


> 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...)

BTW, I just hit that fge000028 page (as I said, different 82.72.... IP
now) and nothing shows in FF3: empty page. I don't have a sniffer on
this machine, but a simple telnet @ port 80 hit (you'll see it happen
in your apache log; a hand-crafted HTTP/1.0 from the same IP) coughed
up  404, so I guess usak.* is a vhost.

I don't know what it /should/ show, or what's bugging, but that's what
I see. This is just FYI.

Cheers!


-- 
Met vriendelijke groeten / Best regards,

Ger Hobbelt

--------------------------------------------------
web:    http://www.hobbelt.com/
        http://www.hebbut.net/
mail:   [email protected]
mobile: +31-6-11 120 978
--------------------------------------------------

------------------------------------------------------------------------------