pyebnf/compiler.py
def _ast_op_exclude_to_code(self, opr, **kwargs):
    """Convert an AST exclude op to python source code."""
    opl, opr = opr.operands

    lines = ["exclusion("]
    lines.extend(self._indent(self._ast_to_code(opl)))
    lines[-1] += ","
    lines.extend(self._indent(self._ast_to_code(opr)))
    lines.append(")")
    return lines
def _ast_op_exclude_to_code(self, opr, **kwargs):
    """Convert an AST exclude op to python source code."""
    opl, opr = opr.operands

    lines = ["exclusion("]
    lines.extend(self._indent(self._ast_to_code(opl)))
    lines[-1] += ","
    lines.extend(self._indent(self._ast_to_code(opr)))
    lines.append(")")
    return lines
def _ast_op_exclude_to_code ( self , opr , * * kwargs ) : opl , opr = opr . operands lines = [ "exclusion(" ] lines . extend ( self . _indent ( self . _ast_to_code ( opl ) ) ) lines [ - 1 ] += "," lines . extend ( self . _indent ( self . _ast_to_code ( opr ) ) ) lines . append ( ")" ) return lines
Convert an AST exclude op to python source code.
Convert an AST exclude op to python source code .