Compiles patterns into a scanner that returns the leftmost match across all of them.
patterns
Scanner createScanner(List<String> patterns);