Keep in mind that there's a limit to the number of blocks that pistons can push. I think that it's something like 10? It would likely take a flying machine with dispensers that have lava and water buckets timed perfectly to have the bridge-making machine work infinitely.