他一邊等火車,一邊在月台上走來走去。

He walked back and forth on the platform while waiting for the train.

Source: Tatoeba

Sentence Composition