tokens.h 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. /************************************************************
  2. Copyright (c) 1994 by Silicon Graphics Computer Systems, Inc.
  3. Permission to use, copy, modify, and distribute this
  4. software and its documentation for any purpose and without
  5. fee is hereby granted, provided that the above copyright
  6. notice appear in all copies and that both that copyright
  7. notice and this permission notice appear in supporting
  8. documentation, and that the name of Silicon Graphics not be
  9. used in advertising or publicity pertaining to distribution
  10. of the software without specific prior written permission.
  11. Silicon Graphics makes no representation about the suitability
  12. of this software for any purpose. It is provided "as is"
  13. without any express or implied warranty.
  14. SILICON GRAPHICS DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS
  15. SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
  16. AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL SILICON
  17. GRAPHICS BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL
  18. DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
  19. DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
  20. OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH
  21. THE USE OR PERFORMANCE OF THIS SOFTWARE.
  22. ********************************************************/
  23. #ifndef TOKENS_H
  24. #define TOKENS_H 1
  25. #define END_OF_FILE 0
  26. #define ERROR_TOK 255
  27. #define XKB_KEYMAP 1
  28. #define XKB_KEYCODES 2
  29. #define XKB_TYPES 3
  30. #define XKB_SYMBOLS 4
  31. #define XKB_COMPATMAP 5
  32. #define XKB_GEOMETRY 6
  33. #define XKB_SEMANTICS 7
  34. #define XKB_LAYOUT 8
  35. #define INCLUDE 10
  36. #define OVERRIDE 11
  37. #define AUGMENT 12
  38. #define REPLACE 13
  39. #define ALTERNATE 14
  40. #define VIRTUAL_MODS 20
  41. #define TYPE 21
  42. #define INTERPRET 22
  43. #define ACTION_TOK 23
  44. #define KEY 24
  45. #define ALIAS 25
  46. #define GROUP 26
  47. #define MODIFIER_MAP 27
  48. #define INDICATOR 28
  49. #define SHAPE 29
  50. #define KEYS 30
  51. #define ROW 31
  52. #define SECTION 32
  53. #define OVERLAY 33
  54. #define TEXT 34
  55. #define OUTLINE 35
  56. #define SOLID 36
  57. #define LOGO 37
  58. #define VIRTUAL 38
  59. #define EQUALS 40
  60. #define PLUS 41
  61. #define MINUS 42
  62. #define DIVIDE 43
  63. #define TIMES 44
  64. #define OBRACE 45
  65. #define CBRACE 46
  66. #define OPAREN 47
  67. #define CPAREN 48
  68. #define OBRACKET 49
  69. #define CBRACKET 50
  70. #define DOT 51
  71. #define COMMA 52
  72. #define SEMI 53
  73. #define EXCLAM 54
  74. #define INVERT 55
  75. #define STRING 60
  76. #define INTEGER 61
  77. #define FLOAT 62
  78. #define IDENT 63
  79. #define KEYNAME 64
  80. #define PARTIAL 70
  81. #define DEFAULT 71
  82. #define HIDDEN 72
  83. #define ALPHANUMERIC_KEYS 73
  84. #define MODIFIER_KEYS 74
  85. #define KEYPAD_KEYS 75
  86. #define FUNCTION_KEYS 76
  87. #define ALTERNATE_GROUP 77
  88. extern Atom tok_ONE_LEVEL;
  89. extern Atom tok_TWO_LEVEL;
  90. extern Atom tok_ALPHABETIC;
  91. extern Atom tok_KEYPAD;
  92. #endif