Edit

kc3-lang/libxkbcommon/src/xkbcomp/parser-priv.h

Branch :

  • Show log

    Commit

  • Author : Pierre Le Marre
    Date : 2025-08-13 17:06:20
    Hash : 3203a010
    Message : tools: Add internal introspection This tool enables simple analysis of XKB files with a YAML or DOT output: - resolve XKB paths; - list sections of a file; - list the includes of each section; - optionally process each include recursively. Additionally, the RDF Turtle output enables to query using the powerful SPARQL language. The tool is for internal use only for now, so that we can test it in various use cases before deciding if making it public.

  • src/xkbcomp/parser-priv.h
  • /*
     * Copyright (c) 1994 by Silicon Graphics Computer Systems, Inc.
     * SPDX-License-Identifier: HPND
     */
    #pragma once
    
    #include "config.h"
    
    #include <stdbool.h>
    
    struct parser_param;
    struct scanner;
    
    #include "scanner-utils.h"
    #include "parser.h"
    
    int
    _xkbcommon_lex(YYSTYPE *yylval, struct scanner *scanner);
    
    XkbFile *
    parse(struct xkb_context *ctx, struct scanner *scanner, const char *map);
    
    bool
    parse_next(struct xkb_context *ctx, struct scanner *scanner, XkbFile **xkb_file);
    
    int
    keyword_to_token(const char *string, size_t len);