Annotation of 43BSD/contrib/icon/test/buildt.icn, revision 1.1

1.1     ! root        1: #  This program takes Icon expressions as input and outputs an Icon
        !             2: #  program that tests the expressions, showing the expressions and
        !             3: #  the results of evaluating them.
        !             4: 
        !             5: procedure main()
        !             6:    local exp, lexp
        !             7:    write("record array(a,b,c,d,e,f,g)")
        !             8:    write("\nprocedure dummy(u,v,x,y,z)")
        !             9:    write("   suspend u | v")
        !            10:    write("   return x")
        !            11:    write("end")
        !            12:    write("\nprocedure main()")
        !            13:    while exp := read() do {
        !            14:       lexp := exp
        !            15:       lexp ?:= escape()
        !            16:       write("   write(\"",lexp," ----> \",image(",exp,") | \"none\")")
        !            17:       }
        !            18:    write("end")
        !            19: end
        !            20: 
        !            21: procedure escape()
        !            22:    local line
        !            23:    line := ""
        !            24:    while line ||:= tab(upto('"\\')) || "\\" || move(1)
        !            25:    return line || tab(0)
        !            26: end

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.