I am currently doing some homework on literary genres and from the list of literary genres on Wikipedia, I came across some non-fiction genres such as Speech, Textbook, and others.
This prompted the thought of weather a computer program is considered literature, and if so would it be a literary genre?
By Wikipedia's description, in American law they are 'literary works, under the definition in the Copyright Act, 17 U.S.C § 101', under the 'United States' heading.
However, on law.cornell.edu, I found that it is described as 'A “computer program” is a set of statements or instructions to be used directly or indirectly in a computer in order to bring about a certain result.'.
Collins dictionary describes literature as 'written material' which could technically mean that computer program is not valid literature as it cannot be written to perform its task. Computer program is not described as literature on this site either.
As there is an inconclusive answer I would appropriate the opinion of someone who knows more than me.