-
-
Save jasdev/79f23abd4f2d15893d00aafd268fae41 to your computer and use it in GitHub Desktop.
Start of an SRT subtitle group parser.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let srtGroupParser = Int.parser(isSigned: false) // The sequence number. | |
.skip(Newline()) // ❌ “Generic struct ‘Newline’ requires the types ‘Substring.Element’ | |
// (aka ‘Character’) and ‘UTF8.CodeUnit’ (aka ‘UInt8’) be equivalent.” | |
.take(timecodeLineParser) | |
.skip(Newline()) | |
// … |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment