kconfig-parser

Crates.iokconfig-parser
lib.rskconfig-parser
version0.1.1
sourcesrc
created_at2022-05-10 21:10:50.223124
updated_at2022-11-18 17:00:10.356671
descriptionKconfig parser for the Kconfig file format from the Linux Kernel for the Cargo Kconfig crate
homepagehttps://gitlab.com/cargo-kconfig
repositoryhttps://gitlab.com/cargo-kconfig/kconfig-parser
max_upload_size
id584190
size270,352
Sjoerd van Leent (santidhammo)

documentation

README

Kconfig parser - for Cargo Kconfig

This is the parser for Kconfig menu items, as used by the Linux Kernel and other projects. It is primarly created to be used by the Cargo Kconfig package, which is still under heavy development, but you are free to use it for your purposes if you like. If you want an easier interface, then donĀ“t use this package, but use Kconfig-represent instead, which uses this parser, but implements the logic for reading and writing .config files, evaluating the definitions, etc. This package merely produces an AST from Kconfig.

When using the package, note that there are three lexers, which are stapled on top of one another, in the following order:

  • The base lexer is used for reading a stream of bytes (this would typically be a file, but another stream is feasible to implement)
  • The source lexer is used to read subsequent streams of bytes defined by the source keyword in a Kconfig file
  • The macro lexer is used for interpreting macros and generating a symbol table for assigned values
Commit count: 16

cargo fmt