note description: "[ Parses any character (1 character). Only fails on empty input. ]" legal: "See notice at end of class." status: "Pre-release" date: "$Date$" revision: "$Revision$" class PEG_ANY inherit PEG_ABSTRACT_PEG create make feature -- Initialization make do end feature -- Implementation internal_parse (a_string: PEG_PARSER_STRING): PEG_PARSER_RESULT -- do if a_string.is_empty then create Result.make (a_string, False) Result := fix_result (Result) else create Result.make (a_string.substring_index (2), True) if not ommit then Result.append_result (a_string [1]) end Result := build_result (Result) end end default_parse_info: READABLE_STRING_8 -- do Result := "." end short_debug_info: READABLE_STRING_8 -- do Result := default_parse_info end feature {PEG_ABSTRACT_PEG} -- Serialization internal_serialize (a_already_visited: LIST [PEG_ABSTRACT_PEG]): READABLE_STRING_8 -- do Result := "." end end