nom_kconfig/entry/menuconfig.rs
1use nom::{bytes::complete::tag, combinator::map, sequence::pair, IResult, Parser};
2
3use crate::{attribute::r#type::parse_type, generic_config_parser, util::ws, KconfigInput};
4
5use super::{config::parse_config_symbol, Config};
6
7/// This is similar to the simple config entry, but it also gives a hint to front ends, that all suboptions should be displayed as a separate list of options. To make sure all the suboptions will really show up under the menuconfig entry and not outside of it, every item from the config options list must depend on the menuconfig symbol.
8pub type MenuConfig = Config;
9
10pub fn parse_menu_config(input: KconfigInput) -> IResult<KconfigInput, MenuConfig> {
11 generic_config_parser!(MenuConfig, "menuconfig", parse_type).parse(input)
12}