Annotation of 43BSD/contrib/icon/book/f/infix.icn, revision 1.1.1.1

1.1       root        1: procedure main()
                      2:    while write(infix(read()))
                      3: end
                      4: 
                      5: procedure infix(exp)
                      6:    return (exp ? form(tab(upto('(')),move(1) & tab(bal(',')),
                      7:       move(1) & tab(-1))) | exp
                      8: end
                      9: 
                     10: procedure form(op,arg1,arg2)
                     11:    return "(" || infix(arg1) || op || infix(arg2) || ")" 
                     12: end

unix.superglobalmegacorp.com

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