The tokenizer uses the ANTLR4 grammar of the Tailor static analyzer for Swift. (https://github.com/sleekbyte/tailor)