Lines Matching refs:sc_expr_str_fn
4798 def custom_str(self, sc_expr_str_fn): argument
4803 return "\n\n".join(node.custom_str(sc_expr_str_fn)
5399 def custom_str(self, sc_expr_str_fn): argument
5404 return "\n\n".join(node.custom_str(sc_expr_str_fn)
5823 def custom_str(self, sc_expr_str_fn): argument
5828 return self._menu_comment_node_str(sc_expr_str_fn) \
5830 self._sym_choice_node_str(sc_expr_str_fn)
5832 def _menu_comment_node_str(self, sc_expr_str_fn): argument
5837 s += "\n\tdepends on {}".format(expr_str(self.dep, sc_expr_str_fn))
5841 sc_expr_str_fn))
5845 def _sym_choice_node_str(self, sc_expr_str_fn): argument
5851 s += " if " + expr_str(cond, sc_expr_str_fn)
5897 "range {} {}".format(sc_expr_str_fn(low),
5898 sc_expr_str_fn(high)),
5902 indent_add_cond("default " + expr_str(default, sc_expr_str_fn),
5910 indent_add_cond("select " + sc_expr_str_fn(select), cond)
5913 indent_add_cond("imply " + sc_expr_str_fn(imply), cond)
5916 indent_add("depends on " + expr_str(self.dep, sc_expr_str_fn))
6104 def expr_str(expr, sc_expr_str_fn=standard_sc_expr_str): argument
6123 return sc_expr_str_fn(expr)
6126 return "{} && {}".format(_parenthesize(expr[1], OR, sc_expr_str_fn),
6127 _parenthesize(expr[2], OR, sc_expr_str_fn))
6132 return "{} || {}".format(_parenthesize(expr[1], AND, sc_expr_str_fn),
6133 _parenthesize(expr[2], AND, sc_expr_str_fn))
6137 return "!({})".format(expr_str(expr[1], sc_expr_str_fn))
6138 return "!" + sc_expr_str_fn(expr[1]) # Symbol
6144 return "{} {} {}".format(sc_expr_str_fn(expr[1]), REL_TO_STR[expr[0]],
6145 sc_expr_str_fn(expr[2]))
6379 def _parenthesize(expr, type_, sc_expr_str_fn): argument
6383 return "({})".format(expr_str(expr, sc_expr_str_fn))
6384 return expr_str(expr, sc_expr_str_fn)