Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

85 lines
2.3 KiB

  1. // error codes
  2. #define OVERFLOW 0x1000
  3. #define SYNTAX 0x1001
  4. #define BADRANGE 0x1002
  5. #define VARDEF 0x1003
  6. #define EXTRACHARS 0x1004
  7. #define LISTSIZE 0x1005
  8. #define STRINGSIZE 0x1006
  9. #define MEMORY 0x1007
  10. #define BADREG 0x1008
  11. #define BADOPCODE 0x1009
  12. #define SUFFIX 0x100a
  13. #define OPERAND 0x100b
  14. #define ALIGNMENT 0x100c
  15. #define PREFIX 0x100d
  16. #define DISPLACEMENT 0x100e
  17. #define BPLISTFULL 0x100f
  18. #define BPDUPLICATE 0x1010
  19. #define BADTHREAD 0x1011
  20. #define DIVIDE 0x1012
  21. #define TOOFEW 0x1013
  22. #define TOOMANY 0x1014
  23. #define SIZE 0x1015
  24. #define BADSEG 0x1016
  25. #define RELOC 0x1017
  26. #define BADPROCESS 0x1018
  27. #define AMBIGUOUS 0x1019
  28. #define FILEREAD 0x101a
  29. #define LINENUMBER 0x101b
  30. #define BADSEL 0x101c
  31. #define SYMTOOSMALL 0x101d
  32. #define BPIONOTSUP 0x101e
  33. #define NOTFOUND 0x101f
  34. #define SESSIONNOTSUP 0x1020
  35. #define UNIMPLEMENT 0x1099
  36. // token classes (< 100) and types (>= 100)
  37. #define EOL_CLASS 0
  38. #define ADDOP_CLASS 1
  39. #define ADDOP_PLUS 100
  40. #define ADDOP_MINUS 101
  41. #define MULOP_CLASS 2
  42. #define MULOP_MULT 200
  43. #define MULOP_DIVIDE 201
  44. #define MULOP_MOD 202
  45. #define MULOP_SEG 203
  46. //#define MULOP_64 204
  47. #define LOGOP_CLASS 3
  48. #define LOGOP_AND 300
  49. #define LOGOP_OR 301
  50. #define LOGOP_XOR 302
  51. #define LRELOP_CLASS 4
  52. #define LRELOP_EQ 400
  53. #define LRELOP_NE 401
  54. #define LRELOP_LT 402
  55. #define LRELOP_GT 403
  56. #define UNOP_CLASS 5
  57. #define UNOP_NOT 500
  58. #define UNOP_BY 501
  59. #define UNOP_WO 502
  60. #define UNOP_DWO 503
  61. #define UNOP_POI 504
  62. #define UNOP_LOW 505
  63. #define UNOP_HI 506
  64. #define UNOP_QWO 507
  65. #define UNOP_VAL 508
  66. #define LPAREN_CLASS 6
  67. #define RPAREN_CLASS 7
  68. #define LBRACK_CLASS 8
  69. #define RBRACK_CLASS 9
  70. #define REG_CLASS 10
  71. #define NUMBER_CLASS 11
  72. #define SYMBOL_CLASS 12
  73. #define LINE_CLASS 13
  74. #define SHIFT_CLASS 14
  75. #define SHIFT_LEFT 1400
  76. #define SHIFT_RIGHT_LOGICAL 1401
  77. #define SHIFT_RIGHT_ARITHMETIC 1402
  78. #define ERROR_CLASS 99 //only used for PeekToken()
  79. #define INVALID_CLASS -1