The spec is simple. "Make it do exactly what Norton's BE ASK does."
ASK "prompt" [responses] [DEFAULT=key] [TIMEOUT=n] [ADJUST=n] [color]
I'd like to add an option to echo or not echo the user's response:
[ECHO=y/n/u/l]
where u and l force the echo to upper or lower case.
> I do think we could use a good open source editor ... We
> could add ... We could drop ... That would allow us to
> submit an unordered set of procedures on input which the
> software could order based on internal reference patterns.
I'd still like to learn Prolog some day.
> That same process would also allow us to generate
> multiple object modules from the same set of
> unordered input as a single unit of work.
I have some code here which lets me "convert" a source file so it can be
compiled under different languages. It's not a translator; I write the
"master" code as a series of comment sections, then fill out each
section in the different desired languages using tags (sort of like
HTML) to distinguish what's what. The converter creates a compilable
file in the chosen language. While working in one of the desired
languages you make changes to the compilable file; when it works the
changed code is merged back into the master (each section has an i.d.
number tag so the merging is pretty simple).
The main problem I run into is that you have to _design_ programs
differently based on the language; the procedures don't necessarily map
one-to-one as you change from one language to another. Error handling
is especially insidious.
Some languages just can't be used for certain applications. When I
played with Java a while back, for example, I couldn't get it to
properly accept a command line parameter which was a quoted string
containing adjacent spaces. For example, Java (at that time anyway)
wouldn't properly pass the following command line parameter string to
the program:
"FOUR SPACES"
Maybe they've fixed it by now. Or maybe I wasn't grabbing the string
properly. I finally looked for a way to grab the entire command line
string so I could parse it myself, but you couldn't do that either.
Maybe I needed a stub .exe program which would somehow (pipe? tempfile?)
pass the info to the Java program.
> No make, no link, no sift,
sift? whazzat?
> Just something with readable source that presents less
> of a learning challenge to a programming wannabe.
Lynn, you know I've been interested in your SL/I for quite a while. My
ASK program is about as simple as "Hello, World" -- can we write the
specs for ASK as if they were to be given to your SL/I black box so I
can see exactly how it works?
What would the SL/I document look like for ASK? Or at least, tell me
how many lines do you think it might contain?
- Peter
=====================================================
To unsubscribe from this list, send an email message
to "steward@scoug.com". In the body of the message,
put the command "unsubscribe scoug-programming".
For problems, contact the list owner at
"rollin@scoug.com".
=====================================================
<< Previous Message <<
>> Next Message >>
Return to [ 05 |
January |
2003 ]
The Southern California OS/2 User Group
P.O. Box 26904
Santa Ana, CA 92799-6904, USA
Copyright 2001 the Southern California OS/2 User Group. ALL RIGHTS
RESERVED.
SCOUG, Warp Expo West, and Warpfest are trademarks of the Southern California OS/2 User Group.
OS/2, Workplace Shell, and IBM are registered trademarks of International
Business Machines Corporation.
All other trademarks remain the property of their respective owners.