1 /************************************************************
2 Copyright (c) 1994 by Silicon Graphics Computer Systems, Inc.
4 Permission to use, copy, modify, and distribute this
5 software and its documentation for any purpose and without
6 fee is hereby granted, provided that the above copyright
7 notice appear in all copies and that both that copyright
8 notice and this permission notice appear in supporting
9 documentation, and that the name of Silicon Graphics not be
10 used in advertising or publicity pertaining to distribution
11 of the software without specific prior written permission.
12 Silicon Graphics makes no representation about the suitability
13 of this software for any purpose. It is provided "as is"
14 without any express or implied warranty.
16 SILICON GRAPHICS DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS
17 SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
18 AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL SILICON
19 GRAPHICS BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL
20 DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
21 DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
22 OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH
23 THE USE OR PERFORMANCE OF THIS SOFTWARE.
25 ********************************************************/
32 extern char scanBuf[1024];
36 extern XkbFile *rtrnValue;
39 #define d(str) fprintf(stderr,"%s\n",str);
40 #define d1(str,a) fprintf(stderr,str,a);
41 #define d2(str,a,b) fprintf(stderr,str,a,b);
49 extern ParseCommon *AppendStmt(ParseCommon * /* to */ ,
50 ParseCommon * /* append */
53 extern ExprDef *ExprCreate(unsigned /* op */ ,
57 extern ExprDef *ExprCreateUnary(unsigned /* op */ ,
62 extern ExprDef *ExprCreateBinary(unsigned /* op */ ,
63 ExprDef * /* left */ ,
67 extern KeycodeDef *KeycodeCreate(char * /* name */ ,
71 extern KeyAliasDef *KeyAliasCreate(char * /* alias */ ,
75 extern VModDef *VModCreate(uint32_t /* name */ ,
79 extern VarDef *VarCreate(ExprDef * /* name */ ,
83 extern VarDef *BoolVarCreate(uint32_t /* nameToken */ ,
87 extern InterpDef *InterpCreate(char * /* sym */ ,
91 extern KeyTypeDef *KeyTypeCreate(uint32_t /* name */ ,
95 extern SymbolsDef *SymbolsCreate(char * /* keyName */ ,
96 ExprDef * /* symbols */
99 extern GroupCompatDef *GroupCompatCreate(int /* group */ ,
103 extern ModMapDef *ModMapCreate(uint32_t /* modifier */ ,
107 extern IndicatorMapDef *IndicatorMapCreate(uint32_t /* name */ ,
111 extern IndicatorNameDef *IndicatorNameCreate(int /* ndx */ ,
112 ExprDef * /* name */ ,
116 extern ExprDef *ActionCreate(uint32_t /* name */ ,
120 extern ExprDef *CreateKeysymList(char * /* sym */
123 extern ShapeDef *ShapeDeclCreate(uint32_t /* name */ ,
124 OutlineDef * /* outlines */
127 extern OutlineDef *OutlineCreate(uint32_t /* field */ ,
128 ExprDef * /* points */
131 extern KeyDef *KeyDeclCreate(char * /* name */ ,
135 extern RowDef *RowDeclCreate(KeyDef * /* keys */
138 extern SectionDef *SectionDeclCreate(uint32_t /* name */ ,
142 extern OverlayKeyDef *OverlayKeyCreate(char * /* under */ ,
146 extern OverlayDef *OverlayDeclCreate(uint32_t /* name */ ,
147 OverlayKeyDef * /* rows */
150 extern DoodadDef *DoodadCreate(unsigned /* type */ ,
151 uint32_t /* name */ ,
155 extern ExprDef *AppendKeysymList(ExprDef * /* list */ ,
159 extern int LookupKeysym(char * /* str */ ,
160 uint32_t * /* sym_rtrn */
163 extern IncludeStmt *IncludeCreate(char * /* str */ ,
167 extern unsigned StmtSetMerge(ParseCommon * /* stmt */ ,
172 extern void PrintStmtAddrs(ParseCommon * /* stmt */
176 extern int XKBParseFile(FILE * /* file */ ,
177 XkbFile ** /* pRtrn */
180 extern int XKBParseString(const char *string, XkbFile ** pRtrn);
182 extern void CheckDefaultMap(XkbFile * maps);
184 extern XkbFile *CreateXKBFile(int /* type */ ,
186 ParseCommon * /* defs */ ,
190 extern void yyerror(const char * /* s */
193 extern int yylex(void);
194 extern int yyparse(void);
196 extern void setScanState(char * /* file */ ,
201 extern const char *yystring;
203 #endif /* XKBPARSE_H */