pyebnf/compiler.py
def _flatten(child, parent):
    """Custom flattening method for the parse tree."""
    return parent.is_type(TokenType.expression) and child.node_type == parent.node_type
def _flatten(child, parent):
    """Custom flattening method for the parse tree."""
    return parent.is_type(TokenType.expression) and child.node_type == parent.node_type
def _flatten ( child , parent ) : return parent . is_type ( TokenType . expression ) and child . node_type == parent . node_type
Custom flattening method for the parse tree.
Custom flattening method for the parse tree .