Lines Matching +full:child +full:- +full:prop +full:- +full:2
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_]*"
119 p[0] = ("not", p[2])
123 p[0] = p[2]
134 p[0] = (p[2], p[1], p[3])
156 p[0] = p[2]
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]
226 return bool(re.match(ast[2], ast_sym(ast[1], env)))
241 # a given compatible. For matching things like gpio-leds child
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