What is the syntactic role of «يضحك» in «جَاءَ زَيْدٌ يَضْحَكُ»?

Supplementary Practice 1: Applied Analysis of Faṣl, Waṣl, Ījāz and Iṭnāb