Thomas Crone wrote:
> Instead I made a GetTag procedure that found the ">", and returned
> an endFlag, TagName, and Attributes back to the Line ? environment.
That sounds pretty reasonable.
> When does Icon go back from an "inner" environment to the outer?
> I presume at least at the end of the "block" the inner serch started in?
No, it should go back at the end of the scanning expression itself.
(Unless the implementation has changed drastically!!)
> For example,
>
> Line ? {
> ...
> {
> tag ? {
> ...
> }
> # are there any cases where we would be back to Line ? here?
In all cases you would be back inside the Line ? scanning environment
here.
> }
> # here we would be definitely back to the Line ? environment?
Yes, but only because it's already back.
> }
You can think of (LHS ? RHS) as operating as follows:
(1) Evaluate LHS to get a (string) value.
(2) push existing &subject, &pos unto a stack
(3) Assign (string) value of LHS to &subject, and 1 to &pos
(4) Evaluate RHS, producing an outcome (a value or failure)
(5) Restore &subject, &pos from stack
(6) Re****t the outcome of the evaluation of the RHS
There's no need to consider surrounding context. Once
LHS ? RHS
has been evaluated, you're back in whatever scanning environment existed
previously.
--
Steve Wampler -- swampler@[EMAIL PROTECTED]
gods that smiled on your birth are now laughing out loud.


|