|
|
1.1 ! root 1: ! 2: ! 3: ! 4: STRUCTS(2) Icon Program Library STRUCTS(2) ! 5: ! 6: ! 7: ! 8: NNNNAAAAMMMMEEEE ! 9: structs - structure operations ! 10: ! 11: DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN ! 12: These procedures for manipulating structures are taken from ! 13: _T_h_e _I_c_o_n _P_r_o_g_r_a_m_m_i_n_g _L_a_n_g_u_a_g_e. ! 14: ! 15: SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS ! 16: ddddeeeepppptttthhhh((((aaaa)))) compute maximum depth of tree aaaa ! 17: eeeeqqqq((((xxxx,,,,yyyy)))) compare list structures xxxx and yyyy ! 18: llllddddaaaagggg((((ssss)))) construct a dag from the string ssss ! 19: llllggggrrrraaaapppphhhh((((ssss)))) construct a graph from the string ssssggggrrrraaaapppphhhh ! 20: llllttttrrrreeeeeeee((((ssss)))) construct a tree from the string ssss ! 21: ssssttttrrrreeeeeeee((((aaaa)))) construct a string from the list aaaa ! 22: ttttccccooooppppyyyy((((aaaa)))) copy tree aaaa ! 23: tttteeeeqqqq((((aaaa1111,,,,aaaa2222)))) compare trees aaaa1111 and aaaa2222 ! 24: vvvviiiissssiiiitttt((((aaaa)))) visit, in preorder, the nodes of aaaa ! 25: ! 26: NNNNOOOOTTTTEEEE ! 27: The procedure llllddddaaaagggg has a second argument that is used on ! 28: internal recursive calls; a second argument must not be sup- ! 29: plied by the user. ! 30: ! 31: SSSSEEEEEEEE AAAALLLLSSSSOOOO ! 32: Griswold, Ralph E. and Madge T. Griswold. _T_h_e _I_c_o_n _P_r_o_g_r_a_m_- ! 33: _m_i_n_g _L_a_n_g_u_a_g_e, Prentice-Hall, Inc., Englewood Cliffs, New ! 34: Jersey, 1983. pp. 170-180, 295. ! 35: ! 36: AAAAUUUUTTTTHHHHOOOORRRR ! 37: Ralph E. Griswold ! 38: ! 39: ! 40: ! 41: ! 42: ! 43: ! 44: ! 45: ! 46: ! 47: ! 48: ! 49: ! 50: ! 51: ! 52: ! 53: ! 54: ! 55: ! 56: ! 57: ! 58: ! 59: ! 60: ! 61: ! 62: ! 63: Version 5.9 The University of Arizona - 4/26/83 1 ! 64: ! 65: ! 66:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.