Synthesis of ergot alkaloids from tryptophan