Lines Matching refs:match
77 match = re.compile(r'^(experimental )?(deprecated )?domain (.*)').match(line)
78 if match:
79 domain = createItem({'domain' : match.group(3)}, match.group(1), match.group(2))
83 match = re.compile(r'^ depends on ([^\s]+)').match(line)
84 if match:
87 domain['dependencies'].append(match.group(1))
90 match = re.compile(r'^ (experimental )?(deprecated )?type (.*) extends (array of )?([^\s]+)').match(line)
91 if match:
94 item = createItem({'id': match.group(3)}, match.group(1), match.group(2))
95 assignType(item, match.group(5), match.group(4), map_binary_to_string)
99 match = re.compile(r'^ (experimental )?(deprecated )?(command|event) (.*)').match(line)
100 if match:
102 if match.group(3) == 'command':
113 item = createItem({}, match.group(1), match.group(2), match.group(4))
117 match = re.compile(r'^ (experimental )?(deprecated )?(optional )?(array of )?([^\s]+) ([^\s]+)').match(line)
118 if match:
119 param = createItem({}, match.group(1), match.group(2), match.group(6))
120 if match.group(3):
122 assignType(param, match.group(5), match.group(4), map_binary_to_string)
123 if match.group(5) == 'enum':
128 match = re.compile(r'^ (parameters|returns|properties)').match(line)
129 if match:
130 subitems = item[match.group(1)] = []
133 match = re.compile(r'^ enum').match(line)
134 if match:
138 match = re.compile(r'^version').match(line)
139 if match:
142 match = re.compile(r'^ major (\d+)').match(line)
143 if match:
144 protocol['version']['major'] = match.group(1)
147 match = re.compile(r'^ minor (\d+)').match(line)
148 if match:
149 protocol['version']['minor'] = match.group(1)
152 match = re.compile(r'^ redirect ([^\s]+)').match(line)
153 if match:
154 item['redirect'] = match.group(1)
157 match = re.compile(r'^ ( )?[^\s]+$').match(line)
158 if match: