def readlines(self):
if self.grammar:<EOL><INDENT>tot = []<EOL>while <NUM_LIT:1>:<EOL><INDENT>line = self.file.readline()<EOL>if not line:<EOL><INDENT>break<EOL><DEDENT>tot.append(line)<EOL><DEDENT>return tot<EOL><DEDENT>return self.file.readlines()<EOL>
Returns a list of all lines (optionally parsed) in the file.