parse static method
- String string
Parses a sequence from the given string
.
Returns either a Literal or EscapeSequence depending on the input.
Implementation
static Sequence parse(String string) {
return EscapeSequence.tryParse(string) ?? Literal._(string);
}