Implements the rules: subprograms_declaration, subprogram_declaration,
compound_command, optional_command, list_commands and program.