Feels like copy/pasted from `ast/Parsers.scala`.