home *** CD-ROM | disk | FTP | other *** search
/ ftp.cs.arizona.edu / ftp.cs.arizona.edu.tar / ftp.cs.arizona.edu / icon / historic / v941.tgz / icon.v941src.tar / icon.v941src / src / common / op.txt < prev    next >
Text File  |  2000-07-29  |  2KB  |  62 lines

  1. #  This file contains tokens for symbols used in standard unary/binary syntax
  2. #
  3. #  operator      token      unary/binary/special    (see notes at bottom)
  4.  
  5.    :=             ASSIGN     _ b
  6.    :=:            SWAP       _ b
  7.    <-             REVASSIGN  _ b
  8.    <->            REVSWAP    _ b
  9.    &    (:=  AUG) AND        s b   # unary form is for keywords
  10.    @    (:=  AUG) AT         s s   # control structures for activation
  11.    ^    (:=  AUG) CARET      u b
  12.    ||   (:=  AUG) CONCAT     _ b
  13.    --   (:=  AUG) DIFF       _ b
  14.    ===  (:=  AUG) EQUIV      _ b
  15.    **   (:=  AUG) INTER      _ b
  16.    |||  (:=  AUG) LCONCAT    _ b
  17.    -    (:=  AUG) MINUS      u b
  18.    %    (:=  AUG) MOD        _ b
  19.    ~=== (:=  AUG) NEQUIV     _ b
  20.    =    (:=  AUG) NMEQ       u b
  21.    >=   (:=  AUG) NMGE       _ b
  22.    >    (:=  AUG) NMGT       _ b
  23.    <=   (:=  AUG) NMLE       _ b
  24.    <    (:=  AUG) NMLT       _ b
  25.    ~=   (:=  AUG) NMNE       _ b
  26.    +    (:=  AUG) PLUS       u b
  27.    ?    (:=  AUG) QMARK      u s   # binary form is a control structure
  28.    ==   (:=  AUG) SEQ        _ b
  29.    >>=  (:=  AUG) SGE        _ b
  30.    >>   (:=  AUG) SGT        _ b
  31.    <<=  (:=  AUG) SLE        _ b
  32.    <<   (:=  AUG) SLT        _ b
  33.    ~==  (:=  AUG) SNE        _ b
  34.    /    (:=  AUG) SLASH      u b
  35.    *    (:=  AUG) STAR       u b
  36.    ++   (:=  AUG) UNION      _ b
  37.    \              BACKSLASH  u s   # binary form is a control structure
  38.    |              BAR        s s   # unary & binary forms are control strutures
  39.    !              BANG       u s   # binary form is a control structure
  40.    .              DOT        u s   # binary form is for field references
  41.    ~              TILDE      u _
  42.  
  43.  
  44. # notes,
  45. #
  46. #  (:=  AUG) indicates that the binary operator has an augmented
  47. #            assignment form. For example, the entry 
  48. #                 +    (:=  AUG) PLUS      ub
  49. #            acts like two entries:
  50. #                 +              PLUS      ub
  51. #                 +:=            AUGPLUS    b
  52. #             except that the compiler automatically combines the
  53. #             implementations for + and := to implement +:=.
  54. #  
  55. #  1st flag: _ - no unary form
  56. #            u - unary operator implemented by .rtt file
  57. #            s - unary form but special implementation within the compiler
  58. #
  59. #  2st flag: _ - no binary form
  60. #            b - binary operator implemented by .rtt file
  61. #            s - binary form but special implementation within the compiler
  62.