Lines Matching refs:mo
71 mo = re.match(r"^#define\s+(\w+)\s+(\d+)$", line)
72 if not mo and line.strip():
76 symbol, number = mo.groups()
132 mo = re.match(r"static arc arcs_(\d+)_(\d+)\[(\d+)\] = {$",
134 assert mo, (lineno, line)
135 n, m, k = map(int, mo.groups())
139 mo = re.match(r"\s+{(\d+), (\d+)},$", line)
140 assert mo, (lineno, line)
141 i, j = map(int, mo.groups())
147 mo = re.match(r"static state states_(\d+)\[(\d+)\] = {$", line)
148 assert mo, (lineno, line)
149 s, t = map(int, mo.groups())
154 mo = re.match(r"\s+{(\d+), arcs_(\d+)_(\d+)},$", line)
155 assert mo, (lineno, line)
156 k, n, m = map(int, mo.groups())
168 mo = re.match(r"static dfa dfas\[(\d+)\] = {$", line)
169 assert mo, (lineno, line)
170 ndfas = int(mo.group(1))
173 mo = re.match(r'\s+{(\d+), "(\w+)", (\d+), (\d+), states_(\d+),$',
175 assert mo, (lineno, line)
176 symbol = mo.group(2)
177 number, x, y, z = map(int, mo.group(1, 3, 4, 5))
184 mo = re.match(r'\s+("(?:\\\d\d\d)*")},$', line)
185 assert mo, (lineno, line)
187 rawbitset = eval(mo.group(1))
201 mo = re.match(r"static label labels\[(\d+)\] = {$", line)
202 assert mo, (lineno, line)
203 nlabels = int(mo.group(1))
206 mo = re.match(r'\s+{(\d+), (0|"\w+")},$', line)
207 assert mo, (lineno, line)
208 x, y = mo.groups()
223 mo = re.match(r"\s+(\d+),$", line)
224 assert mo, (lineno, line)
225 ndfas = int(mo.group(1))
230 mo = re.match(r"\s+{(\d+), labels},$", line)
231 assert mo, (lineno, line)
232 nlabels = int(mo.group(1))
235 mo = re.match(r"\s+(\d+)$", line)
236 assert mo, (lineno, line)
237 start = int(mo.group(1))