the script - The ugly details of what I am trying to do.
K
nnoydb at excite.com
Wed Aug 11 13:34:40 EDT 2004
The editScript message is a after the fact process. I need to munge the script prior to it being set. Since the script with my macros is not necessarily valid and may encounter several if a multitude of errors. I was wondering if I could place a setProp/getProp handler in the front scripts to intercept the script upon storage and retrieval. This would allow me to expand/collapse the code.
Parser Expand and Callopse are a implementation of the GOLD parser with
whatever syntax table you would like to use.
function parserExpand aScript
--
--Do Something
--
return tExpanded
end parserExpand
function parserCollapse aScript
--
--Do Something
--
return tCallapsed
end parserCollapse
setProp script aScript
--
--Now here is the real problem will the call to set the script
--go to the appropriate object since this is a front script?
--
set the script to parserExpand( aScript )
end script
getProp script
--
--Now here is the real problem will the call to set the script
--go to the appropriate object since this is a front script?
--
put the script into tScript
return parserCollapse( tScript )
end script
Kevin
-==-=-=-=-=-=-==-=-=-=-=-=-=-=-==-=-=-=-=-=-
Disclaimer:
Any resemblance between the above views and those of my
employer, my terminal, or the view out my window are purely
coincidental.
Any resemblance between the above and my own views is non-deterministic.
The question of the existence of views in the absence of anyone to hold
them
is left as an exercise for the reader. The question of the existence of
the reader
is left as an exercise for the second god coefficient.
(A discussion of non-orthogonal, non-integral polytheism is beyond the
scope of this article.)
_______________________________________________
Join Excite! - http://www.excite.com
The most personalized portal on the Web!
More information about the use-livecode
mailing list