cenotelie / hime

Apache License 2.0
27 stars 4 forks source link

erroneous comma in .rs output #80

Closed HeathenHacker closed 1 year ago

HeathenHacker commented 1 year ago

using himecc 4.2.0 to generate a parser from a grammar with syntactic actions generates the function

/// Parses the specified string with this parser
pub fn parse_string(input: String) -> ParseResult<'static, 'static, 'static> {
    let text = Text::from_string(input);
    parse_text(text, , &mut NoActions {})
}

with one too many commas in the parse_text call

woutersl commented 1 year ago

Good catch, thank you for the feedback. This has been fixed in 4.2.1 and subsequent versions.