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