Lines Matching refs:sc_expr_str_fn
4760 def custom_str(self, sc_expr_str_fn): argument
4765 return "\n\n".join(node.custom_str(sc_expr_str_fn)
5361 def custom_str(self, sc_expr_str_fn): argument
5366 return "\n\n".join(node.custom_str(sc_expr_str_fn)
5784 def custom_str(self, sc_expr_str_fn): argument
5789 return self._menu_comment_node_str(sc_expr_str_fn) \
5791 self._sym_choice_node_str(sc_expr_str_fn)
5793 def _menu_comment_node_str(self, sc_expr_str_fn): argument
5798 s += "\n\tdepends on {}".format(expr_str(self.dep, sc_expr_str_fn))
5802 sc_expr_str_fn))
5806 def _sym_choice_node_str(self, sc_expr_str_fn): argument
5812 s += " if " + expr_str(cond, sc_expr_str_fn)
5853 "range {} {}".format(sc_expr_str_fn(low),
5854 sc_expr_str_fn(high)),
5858 indent_add_cond("default " + expr_str(default, sc_expr_str_fn),
5866 indent_add_cond("select " + sc_expr_str_fn(select), cond)
5869 indent_add_cond("imply " + sc_expr_str_fn(imply), cond)
5872 indent_add("depends on " + expr_str(self.dep, sc_expr_str_fn))
6060 def expr_str(expr, sc_expr_str_fn=standard_sc_expr_str): argument
6079 return sc_expr_str_fn(expr)
6082 return "{} && {}".format(_parenthesize(expr[1], OR, sc_expr_str_fn),
6083 _parenthesize(expr[2], OR, sc_expr_str_fn))
6088 return "{} || {}".format(_parenthesize(expr[1], AND, sc_expr_str_fn),
6089 _parenthesize(expr[2], AND, sc_expr_str_fn))
6093 return "!({})".format(expr_str(expr[1], sc_expr_str_fn))
6094 return "!" + sc_expr_str_fn(expr[1]) # Symbol
6100 return "{} {} {}".format(sc_expr_str_fn(expr[1]), REL_TO_STR[expr[0]],
6101 sc_expr_str_fn(expr[2]))
6335 def _parenthesize(expr, type_, sc_expr_str_fn): argument
6339 return "({})".format(expr_str(expr, sc_expr_str_fn))
6340 return expr_str(expr, sc_expr_str_fn)