Skip to main content

parse_macros

Function parse_macros 

Source
pub fn parse_macros(input: &str) -> HashMap<String, String>
Expand description

Split a seq macro string into definitions.

Through macro_defn_pairs, the port’s owner of C’s macParseDefns grammar (macUtil.c), so a quoted value with an embedded comma survives — a raw split(',') tears it. A name given with no = is a deletion in that grammar and is dropped here, since a program can only be started with definitions.