def program_name_from_declaration(declaration):
    """
    Determine a program name from a given declaration

    Looks for::

        PROGRAM <program_name>
    """
    for line in declaration.splitlines():
        line = line.strip()
        if line.lower().startswith('program '):
            return line.split(' ')[1]
