Lines Matching refs:line
14 A simple C preprocessor that scans C source and computes, line by line,
19 string but on another line and with preprocessor macros in between...
39 " line=", str(self.line_number),
57 print("Error at" + filename, "line", self.line_number, ":")
66 for line in s.split("\n"):
67 self.writeline(line)
69 def writeline(self, line):
71 line = line.strip()
79 line = self.continuation + line
82 if not line:
85 if line.endswith('\\'):
86 self.continuation = line[:-1].rstrip() + " "
102 if '*/' in line:
109 _, _, line = line.partition('*/')
113 if '/*' in line:
117 before, _, remainder = line.partition('/*')
121 line = before.rstrip() + ' ' + after.lstrip()
125 line = before.rstrip()
130 before, line_comment, comment = line.partition('//')
132 line = before.rstrip()
134 if not line.startswith('#'):
137 line = line[1:].lstrip()
138 assert line
140 fields = line.split()
146 self.fail("Invalid format for #" + token + " line: no argument!")
156 self.fail("Invalid format for #" + token + " line: should be exactly one argument!")
185 for line_number, line in enumerate(f.read().split('\n'), 1):
186 cpp.writeline(line)