[comp.lang.icon] beginner help

buchs@MAYO.EDU (05/30/90)

I have just started with Icon.  It looks like I really need to
get "The Icon Programming Language" to get very far.  What have
others done?  I have found a bit of info in some of the TR
documents and I could probably read through some of the library
programs to get ideas.

I am trying to parse a file with lines of backslash delimited
fields, with no trailing delimiter:

  field1\field2\field3

I thought I was on to an elegant way with the string scanning
operator:

  procedure main()
    while line := read() do {
      line ? while write(tab(find("\\")))
        do move(1)
    }
  end

But I cannot get the last field.  Any ideas?
-------------------------------------------------------------
Kevin Buchs          Internet: buchs@mayo.edu
Mayo Foundation              Is this my life or is it just an
Rochester, MN 55905          incredible, high-speed, simulation?
(507) 284-0009                         -S. R. Cleaves
-------------------------------------------------------------