pyebnf/primitive.py
def trimmed_pred_default(node, parent):
  """The default predicate used in Node.trimmed."""
  return isinstance(node, ParseNode) and (node.is_empty or node.is_type(ParseNodeType.terminal))
def trimmed_pred_default(node, parent):
  return isinstance(node, ParseNode) and (node.is_empty or node.is_type(ParseNodeType.terminal))
def trimmed_pred_default ( node , parent ) : return isinstance ( node , ParseNode ) and ( node . is_empty or node . is_type ( ParseNodeType . terminal ) )
The default predicate used in Node.trimmed.
The default predicate used in Node . trimmed .