Servo does not have the same main-thread limitation as Gecko here.
A WebIDL parser written in Python to be used in Mozilla.