parseAll static method

List<Sequence> parseAll(
  1. String string
)

Parses all sequences from the given string.

If the string is empty, returns an iterable with an empty Literal.

Implementation

static List<Sequence> parseAll(String string) {
  if (string.isEmpty) {
    return const [Literal._('')];
  }
  return List.of(_parseAll(string));
}