Lines Matching +full:child +full:- +full:prop +full:- +full:1
5 # SPDX-License-Identifier: Apache-2.0
51 r"0x[0-9a-fA-F]+"
63 t.value = t.value[1:-1]
91 r"[A-Za-z_][0-9A-Za-z_]*"
111 p[0] = ("or", p[1], p[3])
115 p[0] = ("and", p[1], p[3])
134 p[0] = (p[2], p[1], p[3])
138 p[0] = ("exists", p[1])
142 p[0] = [p[1]]
147 p[0] = [p[1]]
151 p[0] = copy.copy(p[1])
160 p[0] = [p[1]]
164 p[0] = copy.copy(p[1])
170 p[0] = p[1]
175 p[0] = p[1]
204 return not ast_expr(ast[1], env, edt)
206 return ast_expr(ast[1], env, edt) or ast_expr(ast[2], env, edt)
208 return ast_expr(ast[1], env, edt) and ast_expr(ast[2], env, edt)
210 return ast_sym(ast[1], env) == ast[2]
212 return ast_sym(ast[1], env) != ast[2]
214 return ast_sym_int(ast[1], env) > int(ast[2])
216 return ast_sym_int(ast[1], env) < int(ast[2])
218 return ast_sym_int(ast[1], env) >= int(ast[2])
220 return ast_sym_int(ast[1], env) <= int(ast[2])
222 return ast_sym(ast[1], env) in ast[2]
224 return bool(ast_sym(ast[1], env))
226 return bool(re.match(ast[2], ast_sym(ast[1], env)))
228 compat = ast[1][0]
234 alias = ast[1][0]
241 # a given compatible. For matching things like gpio-leds child
244 alias = ast[1][0]
245 compat = ast[1][1]
255 compat = ast[1][1]
256 label = ast[1][0]
265 chosen = ast[1][0]
271 label = ast[1][0]
277 label = ast[1][0]
279 prop = ast[1][1]
280 if node and prop in node.props and node.props[prop].val:
292 # Like it's C counterpart, state machine is not thread-safe
305 "A" : "1",
313 for line in open(sys.argv[1]).readlines():