def program(): prog = many(program_part) whitespace() eof() return ('prog', prog)
def xml(): prolog() n = lexeme(element) eof() return n
def xml_char_spec_parser(): v = sep1(partial(choice, char_spec_range, char_spec_single_char, char_spec_single_hex_char), char_spec_seperator) eof() return v