A highly experimental yacs rewrite. Do not use!