[comp.sys.mac.hypercard] HyperCard XCMD support ideas

alibaba@ucscb.UCSC.EDU (Alexander M. Rosenberg) (05/06/88)

PUGH@NMFECC.ARPA has suggested that I rename my screen wipe XCMD to visual.
I could then parse the visual arguments to see if they are correct for my
visual effect else pass them. The hitch:

I have to duplicate the complicated parsing and error detectionn that
HyperTalk has built in.

What I want:

HyperCard's XMCD language extenssions should be given more help in parsing
phrases. What is important is to be able to return the same errors that
HyperCard returns for syntax problems. Therefore a call to HyperCard with
an error number is necessary.

I would also hope for a way to have HyperCard automatically condense
arguments to known abbreviations to speed parsing and string checking in
XCMDs. For example, I want HyperCard to automatically remove the "effect"
qualifier from the "visual" command if it senses it. Of course, this
should be a call made by the XCMD requesting the help. There is no sense
in every XCMD being 16+K to parse commands and check syntax errors. If
"wipe" is spelled wrong, then I want to let the user of my XCMD think
that my XCMD is really a part of the language and not a superficial
extension with no useful error response technique.

Any Ideas, thoughts comments?

-------------------------------------------------------------------------------
-  Alexander M. Rosenberg  - INTERNET: alibaba@ucscb.ucsc.edu   - Yoyodyne    -
-  Crown College, UCSC     - UUCP:...!ucbvax!ucscc!ucscb!alibaba- Propulsion  -
-  Santa Cruz, CA 95064    - BITNET:alibaba%ucscb@ucscc.BITNET  - Systems     -
-  (408) 426-8869          - Disclaimer: Nobody is my employer  - :-)         -
-                          - so nobody cares what I say.        -             -