home *** CD-ROM | disk | FTP | other *** search
/ PC World 2000 August / PCWorld_2000-08_cd.bin / Software / TemaCD / xbasic / xbpro.exe / xb / operator.hlp < prev    next >
Text File  |  2000-01-15  |  5KB  |  98 lines

  1. ' ######################  Max Reason
  2. ' #####  operator  #####  copyright 1988-2000
  3. ' ######################  XBasic operator helpfile
  4. ' for Windows XBasic
  5. ' for Linux XBasic
  6. ' operator        description
  7. ' =======================================================
  8. ' ~    NOT        bitwise NOT
  9. ' &    AND        bitwise AND
  10. ' ^    XOR        bitwise XOR
  11. ' |     OR        bitwise OR
  12. ' !!              logical TEST
  13. ' !               logical NOT
  14. ' &&              logical AND
  15. ' ^^              logical XOR
  16. ' ||              logical OR
  17. ' =               assignment
  18. ' =               logical compare for EQUAL
  19. ' <>              logical compare for NOT EQUAL
  20. ' <               logical compare for LESS THAN
  21. ' <=              logical compare for LESS THAN OR EQUAL
  22. ' >               logical compare for GREATER THAN
  23. ' >=              logical compare for GREATER THAN OR EQUAL
  24. ' ==              logical compare for EQUAL
  25. ' !=              logical compare for NOT EQUAL
  26. ' !<              logical compare for NOT LESS THAN
  27. ' !<=             logical compare for NOT LESS THAN OR EQUAL
  28. ' !>              logical compare for NOT GREATER THAN
  29. ' !>=             logical compare for NOT GREATER THAN OR EQUAL
  30. ' <<              bitwise LEFT SHIFT  (carry in zeros)
  31. ' >>              bitwise RIGHT SHIFT  (carry in zeros)
  32. ' <<<             arithmetic UP SHIFT  (carry in zeros)
  33. ' >>>             arithmetic DOWN SHIFT  (carry in most significant bit)
  34. ' +               arithmetic ADD
  35. ' -               arithmetic SUBTRACT
  36. ' *               arithmetic MULTIPLY
  37. ' \               arithmetic INTEGER DIVIDE
  38. ' /               arithmetic FLOATING POINT DIVIDE
  39. ' **              arithmetic RAISE TO POWER
  40. ' +               arithmetic UNARY PLUS
  41. ' -               arithmetic UNARY MINUS
  42. ' &               ADDRESS of data
  43. ' &&              ADDRESS of handle
  44. '  
  45. ' +               string concatenate
  46. ' **********************************************
  47. ' **************  Operator Table  **************
  48. ' **********************************************
  49. ' X OP    ALT     KIND    CLASS       OPERANDS     RETURNS    PREC   COMMENTS
  50. ' &               unary      10       anytype      address    12     address of object data
  51. ' &&              unary      10       anytype      address    12     address of object handle
  52. ' !               unary       9       numeric      T/F        12     logical not  (TRUE if 0, else FALSE)
  53. ' !!              unary       9       numeric      T/F        12     logical test  (FALSE if 0, else TRUE)
  54. ' NOT     ~       unary       9       Integer      SameType   12     bitwise NOT
  55. ' +               unary       8       numeric      SameType   12     plus
  56. ' -               unary       8       numeric      SameType   12     minus
  57. ' >>>             binary      7       Integer      LeftType   11     arithmetic up shift
  58. ' <<<             binary      7       Integer      LeftType   11     arithmetic down shift
  59. ' <<              binary      7       Integer      LeftType   11     bitwise left shift
  60. ' >>              binary      7       Integer      LeftType   11     bitwise right shift
  61. ' **              binary      4       numeric      hightype   10     power
  62. ' /               binary      4       numeric      hightype    9     divide
  63. ' *               binary      4       numeric      hightype    9     multiply
  64. ' \               binary      6       numeric      Integer     9     integer divide
  65. ' MOD             binary      6       numeric      Integer     9     modulus (integer remainder)
  66. ' +               binary      5       numeric      hightype    8     add
  67. ' +               binary      5       string       string      8     concatenate
  68. ' -               binary      4       numeric      hightype    8     subtract
  69. ' AND     &       binary      3       Integer      hightype    7     bitwise AND
  70. ' XOR     ^       binary      3       Integer      hightype    6     bitwise XOR
  71. ' OR      |       binary      3       Integer      hightype    6     bitwise OR
  72. ' >       !<=     binary      2       numstr       T/F         5     greater-than
  73. ' >=      !<      binary      2       numstr       T/F         5     greater-or-equal
  74. ' <=      !>      binary      2       numstr       T/F         5     less-or-equal
  75. ' <       !>=     binary      2       numstr       T/F         5     less-than
  76. ' <>      !=      binary      2       numstr       T/F         4     not-equal
  77. ' =       ==      binary      2       numstr       T/F         4     equal  (also "!<>")
  78. ' &&              binary      1       Integer      T/F         3     logical AND
  79. ' ^^              binary      1       Integer      T/F         2     logical XOR
  80. ' ||              binary      1       Integer      T/F         2     logical OR
  81. ' =               binary              numstr       righttype   1     assignment
  82. '                                                  T/F               T/F is always XLONG
  83. '
  84.