Parse and generate top-level functions. In case of C# and similar languages put the top-level functions to the Program (/etc) class.