Debian Codegraph @

src/xkbcomp/parser-priv.h

raw
1 /*
2 * Copyright (c) 1994 by Silicon Graphics Computer Systems, Inc.
3 * SPDX-License-Identifier: HPND
4 */
5 #pragma once
6
7 #include "config.h"
8
9 #include <stdbool.h>
10
11 struct parser_param;
12 struct scanner;
13
14 #include "scanner-utils.h"
15 #include "parser.h"
16
17 int
18 _xkbcommon_lex(YYSTYPE *yylval, struct scanner *scanner);
19
20 XkbFile *
21 parse(struct xkb_context *ctx, struct scanner *scanner, const char *map);
22
23 bool
24 parse_next(struct xkb_context *ctx, struct scanner *scanner, XkbFile **xkb_file);
25
26 int
27 keyword_to_token(const char *string, size_t len);