Module scsys_core::parse
source · Enums
A string fragment contains a fragment of a string being parsed: either
a non-empty Literal (a series of non-escaped characters), a single
parsed escaped character, or a block of escaped whitespace.
Functions
Parse an escaped character: \n, \t, \r, \u{00AC}, etc.
Parse a backslash, followed by any amount of whitespace. This is used later
to discard any escaped whitespace.
Combine parse_literal, parse_escaped_whitespace, and parse_escaped_char
into a StringFragment.
Parse a non-empty block of text that doesn’t include \ or “
Parse a string. Use a loop of parse_fragment and push all of the fragments
into an output string.
Parse a unicode sequence, of the form u{XXXX}, where XXXX is 1 to 6
hexadecimal numerals. We will combine this later with parse_escaped_char
to parse sequences like \u{00AC}.