Talk About Network



Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Icon > scanning enviro...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 4 Topic 179 of 181
Post > Topic >>

scanning environments

by Thomas Crone <tomnjan@[EMAIL PROTECTED] > Apr 1, 2008 at 07:06 PM

The Icon Book mentions scanning environments, but doesn't say how to use 
them.

I'm trying to modify R. J. Alexander's chkhtml.icn to clean up redundant
tags in .html files.

In the CheckHTML procedure, he does

    Line ? {
       while tab(upto(scanChars)) do {
          case c := move (1) of {
             "<": ProcessTag(f) | break
             ...
          }
       }
    }

and in ProcessTag, in the same scan environment,

    tag := ""
    ...
    until tag ||:= tab(find(">")) do {
       ...

putting the contents of the HTNL tag into the variable tag.
Then starts a new scanning environment,

    tag ? {
       ...
       # how do I access the "outer" scanning environment vars here?
       ...
    }

Is there a way I can modify the &subject and &pos of the Line ? 
environment while I'm in the tag ? environment?

Thanks in advance...

Tom Crone		crone@[EMAIL PROTECTED]





 4 Posts in Topic:
scanning environments
Thomas Crone <tomnjan@  2008-04-01 19:06:46 
Re: scanning environments
Steve Wampler <swample  2008-04-02 08:51:34 
Re: scanning environments
Thomas Crone <tomnjan@  2008-04-07 22:27:40 
Re: scanning environments
Steve Wampler <swample  2008-04-08 08:03:37 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Tue May 13 23:16:59 CDT 2008.