Re: TechNote 2106
Re: TechNote 2106
- Subject: Re: TechNote 2106
- From: Walter Ian Kaye <email@hidden>
- Date: Fri, 5 Mar 2004 19:00:24 -0800
At 04:26a -0800 03/05/2004, Chris Page didst inscribe upon an
electronic papyrus:
In any case, several existing programming languages do in fact allow
whitespace between words in a phrase, so AS is not alone in this.
Some use surrounding delimiters instead, e.g., vertical bars
"|multiple word name|", in order to aid in parsing for both the
compiler implementor and the human code reader.
I wanted to have that in my mail filter rules file, but I wanted to
be able to parse the lines with a single, simple regex for the sake
of speed (the more it gets done before the next email message
arrives, the better), which meant I could only use spaces for
delimiting and in one "variable" part of the line, which I chose to
be the comparison operators. I actually use this in a sneaky way,
where the word "index" in "obfuscation index exceeds" is really part
of "exceeds" and not part of "obfuscation" although it looks as if it
is. :-)
For example, an editor that edits programs instead of raw text could
unambiguously handle identifiers with arbitrary text in them. The
text would not be parsed. The programmer would effectively fill in
forms presented by the editor, where the editor knows what goes in
each field of each form. Ideally, this representation would be
passed to the compiler and there would be no parser at all, except
for importing legacy code.
Would it look like a form, or like Script Editor? And if the user
doesn't see the fields, how would s/he know where to click?
All we need now is an editor that edits programs instead of text.
??
I would love to help develop such an editor, by the way (in fact,
see my .sig, hint, hint :-).
--
Chris Page - Software Wrangler - engineer for hire
Gee, I was thinking you were keeping a low profile so as not be
barraged with questions like "OK, so what *really* happened at Palm?"
;)
-boo
ok, so what really happened? ;)
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.