I am working on a student programming assignment and I have in mind a Line-Of_Code counter for Ada programs. Obviously, the first problem is the definition of a Line of Code. The quick solution is that it is anything which ends with a semicolon but that has problems - to whit: is a 'with' statement a line of code, or maybe a parameter declaration?
I have been unable to locate and literature reference to this issue and I wondered if anyone couple point me at something. Alternatively, maybe some good teamers who are in the software development industry could tell me how their companies, or the industry in general, define a line-of-code for the purposes of paying contract programmers.