beanmachine.ppl.compiler.ast_patterns module

Pattern matching for ASTs

beanmachine.ppl.compiler.ast_patterns.arguments(args: Optional[Union[beanmachine.ppl.compiler.patterns.PatternBase, int, str, float, type, list]] = <beanmachine.ppl.compiler.patterns.AnyPattern object>, vararg: Optional[Union[beanmachine.ppl.compiler.patterns.PatternBase, int, str, float, type, list]] = <beanmachine.ppl.compiler.patterns.AnyPattern object>, kwonlyargs: Optional[Union[beanmachine.ppl.compiler.patterns.PatternBase, int, str, float, type, list]] = <beanmachine.ppl.compiler.patterns.AnyPattern object>, kw_defaults: Optional[Union[beanmachine.ppl.compiler.patterns.PatternBase, int, str, float, type, list]] = <beanmachine.ppl.compiler.patterns.AnyPattern object>, kwarg: Optional[Union[beanmachine.ppl.compiler.patterns.PatternBase, int, str, float, type, list]] = <beanmachine.ppl.compiler.patterns.AnyPattern object>, defaults: Optional[Union[beanmachine.ppl.compiler.patterns.PatternBase, int, str, float, type, list]] = <beanmachine.ppl.compiler.patterns.AnyPattern object>) Optional[Union[beanmachine.ppl.compiler.patterns.PatternBase, int, str, float, type, list]]
beanmachine.ppl.compiler.ast_patterns.assign(targets: Optional[Union[beanmachine.ppl.compiler.patterns.PatternBase, int, str, float, type, list]] = <beanmachine.ppl.compiler.patterns.AnyPattern object>, value: Optional[Union[beanmachine.ppl.compiler.patterns.PatternBase, int, str, float, type, list]] = <beanmachine.ppl.compiler.patterns.AnyPattern object>) Optional[Union[beanmachine.ppl.compiler.patterns.PatternBase, int, str, float, type, list]]
beanmachine.ppl.compiler.ast_patterns.ast_assert(expr: Optional[Union[beanmachine.ppl.compiler.patterns.PatternBase, int, str, float, type, list]] = <beanmachine.ppl.compiler.patterns.AnyPattern object>, msg: Optional[Union[beanmachine.ppl.compiler.patterns.PatternBase, int, str, float, type, list]] = <beanmachine.ppl.compiler.patterns.AnyPattern object>) Optional[Union[beanmachine.ppl.compiler.patterns.PatternBase, int, str, float, type, list]]
beanmachine.ppl.compiler.ast_patterns.ast_boolop(op: Optional[Union[beanmachine.ppl.compiler.patterns.PatternBase, int, str, float, type, list]] = <beanmachine.ppl.compiler.patterns.AnyPattern object>, values: Optional[Union[beanmachine.ppl.compiler.patterns.PatternBase, int, str, float, type, list]] = <beanmachine.ppl.compiler.patterns.AnyPattern object>) Optional[Union[beanmachine.ppl.compiler.patterns.PatternBase, int, str, float, type, list]]
beanmachine.ppl.compiler.ast_patterns.ast_compare(left: Optional[Union[beanmachine.ppl.compiler.patterns.PatternBase, int, str, float, type, list]] = <beanmachine.ppl.compiler.patterns.AnyPattern object>, ops: Optional[Union[beanmachine.ppl.compiler.patterns.PatternBase, int, str, float, type, list]] = <beanmachine.ppl.compiler.patterns.AnyPattern object>, comparators: Optional[Union[beanmachine.ppl.compiler.patterns.PatternBase, int, str, float, type, list]] = <beanmachine.ppl.compiler.patterns.AnyPattern object>) Optional[Union[beanmachine.ppl.compiler.patterns.PatternBase, int, str, float, type, list]]
beanmachine.ppl.compiler.ast_patterns.ast_dict(keys: Optional[Union[beanmachine.ppl.compiler.patterns.PatternBase, int, str, float, type, list]] = <beanmachine.ppl.compiler.patterns.AnyPattern object>, values: Optional[Union[beanmachine.ppl.compiler.patterns.PatternBase, int, str, float, type, list]] = <beanmachine.ppl.compiler.patterns.AnyPattern object>) Optional[Union[beanmachine.ppl.compiler.patterns.PatternBase, int, str, float, type, list]]
beanmachine.ppl.compiler.ast_patterns.ast_dictComp(key: Optional[Union[beanmachine.ppl.compiler.patterns.PatternBase, int, str, float, type, list]] = <beanmachine.ppl.compiler.patterns.AnyPattern object>, value: Optional[Union[beanmachine.ppl.compiler.patterns.PatternBase, int, str, float, type, list]] = <beanmachine.ppl.compiler.patterns.AnyPattern object>, generators: Optional[Union[beanmachine.ppl.compiler.patterns.PatternBase, int, str, float, type, list]] = <beanmachine.ppl.compiler.patterns.AnyPattern object>) Optional[Union[beanmachine.ppl.compiler.patterns.PatternBase, int, str, float, type, list]]
beanmachine.ppl.compiler.ast_patterns.ast_for(target: Optional[Union[beanmachine.ppl.compiler.patterns.PatternBase, int, str, float, type, list]] = <beanmachine.ppl.compiler.patterns.AnyPattern object>, iter: Optional[Union[beanmachine.ppl.compiler.patterns.PatternBase, int, str, float, type, list]] = <beanmachine.ppl.compiler.patterns.AnyPattern object>, body: Optional[Union[beanmachine.ppl.compiler.patterns.PatternBase, int, str, float, type, list]] = <beanmachine.ppl.compiler.patterns.AnyPattern object>, orelse: Optional[Union[beanmachine.ppl.compiler.patterns.PatternBase, int, str, float, type, list]] = <beanmachine.ppl.compiler.patterns.AnyPattern object>) Optional[Union[beanmachine.ppl.compiler.patterns.PatternBase, int, str, float, type, list]]
beanmachine.ppl.compiler.ast_patterns.ast_generator(elt: Optional[Union[beanmachine.ppl.compiler.patterns.PatternBase, int, str, float, type, list]] = <beanmachine.ppl.compiler.patterns.AnyPattern object>, generators: Optional[Union[beanmachine.ppl.compiler.patterns.PatternBase, int, str, float, type, list]] = <beanmachine.ppl.compiler.patterns.AnyPattern object>) Optional[Union[beanmachine.ppl.compiler.patterns.PatternBase, int, str, float, type, list]]
beanmachine.ppl.compiler.ast_patterns.ast_if(test: Optional[Union[beanmachine.ppl.compiler.patterns.PatternBase, int, str, float, type, list]] = <beanmachine.ppl.compiler.patterns.AnyPattern object>, body: Optional[Union[beanmachine.ppl.compiler.patterns.PatternBase, int, str, float, type, list]] = <beanmachine.ppl.compiler.patterns.AnyPattern object>, orelse: Optional[Union[beanmachine.ppl.compiler.patterns.PatternBase, int, str, float, type, list]] = <beanmachine.ppl.compiler.patterns.AnyPattern object>) Optional[Union[beanmachine.ppl.compiler.patterns.PatternBase, int, str, float, type, list]]
beanmachine.ppl.compiler.ast_patterns.ast_index(value, **other)
beanmachine.ppl.compiler.ast_patterns.ast_list(elts: Optional[Union[beanmachine.ppl.compiler.patterns.PatternBase, int, str, float, type, list]] = <beanmachine.ppl.compiler.patterns.AnyPattern object>, ctx: Optional[Union[beanmachine.ppl.compiler.patterns.PatternBase, int, str, float, type, list]] = <beanmachine.ppl.compiler.patterns.AnyPattern object>, ast_op=<class '_ast.List'>) Optional[Union[beanmachine.ppl.compiler.patterns.PatternBase, int, str, float, type, list]]
beanmachine.ppl.compiler.ast_patterns.ast_listComp(elt: Optional[Union[beanmachine.ppl.compiler.patterns.PatternBase, int, str, float, type, list]] = <beanmachine.ppl.compiler.patterns.AnyPattern object>, generators: Optional[Union[beanmachine.ppl.compiler.patterns.PatternBase, int, str, float, type, list]] = <beanmachine.ppl.compiler.patterns.AnyPattern object>) Optional[Union[beanmachine.ppl.compiler.patterns.PatternBase, int, str, float, type, list]]
beanmachine.ppl.compiler.ast_patterns.ast_luple(elts: Optional[Union[beanmachine.ppl.compiler.patterns.PatternBase, int, str, float, type, list]] = <beanmachine.ppl.compiler.patterns.AnyPattern object>, ctx: Optional[Union[beanmachine.ppl.compiler.patterns.PatternBase, int, str, float, type, list]] = <beanmachine.ppl.compiler.patterns.AnyPattern object>) Optional[Union[beanmachine.ppl.compiler.patterns.PatternBase, int, str, float, type, list]]
beanmachine.ppl.compiler.ast_patterns.ast_return(value: Optional[Union[beanmachine.ppl.compiler.patterns.PatternBase, int, str, float, type, list]] = <beanmachine.ppl.compiler.patterns.AnyPattern object>) Optional[Union[beanmachine.ppl.compiler.patterns.PatternBase, int, str, float, type, list]]
beanmachine.ppl.compiler.ast_patterns.ast_setComp(elt: Optional[Union[beanmachine.ppl.compiler.patterns.PatternBase, int, str, float, type, list]] = <beanmachine.ppl.compiler.patterns.AnyPattern object>, generators: Optional[Union[beanmachine.ppl.compiler.patterns.PatternBase, int, str, float, type, list]] = <beanmachine.ppl.compiler.patterns.AnyPattern object>) Optional[Union[beanmachine.ppl.compiler.patterns.PatternBase, int, str, float, type, list]]
beanmachine.ppl.compiler.ast_patterns.ast_str(s: Optional[Union[beanmachine.ppl.compiler.patterns.PatternBase, int, str, float, type, list]] = <beanmachine.ppl.compiler.patterns.AnyPattern object>) Optional[Union[beanmachine.ppl.compiler.patterns.PatternBase, int, str, float, type, list]]
beanmachine.ppl.compiler.ast_patterns.ast_while(test: Optional[Union[beanmachine.ppl.compiler.patterns.PatternBase, int, str, float, type, list]] = <beanmachine.ppl.compiler.patterns.AnyPattern object>, body: Optional[Union[beanmachine.ppl.compiler.patterns.PatternBase, int, str, float, type, list]] = <beanmachine.ppl.compiler.patterns.AnyPattern object>, orelse: Optional[Union[beanmachine.ppl.compiler.patterns.PatternBase, int, str, float, type, list]] = <beanmachine.ppl.compiler.patterns.AnyPattern object>) Optional[Union[beanmachine.ppl.compiler.patterns.PatternBase, int, str, float, type, list]]
beanmachine.ppl.compiler.ast_patterns.attribute(value: Optional[Union[beanmachine.ppl.compiler.patterns.PatternBase, int, str, float, type, list]] = <beanmachine.ppl.compiler.patterns.AnyPattern object>, attr: Optional[Union[beanmachine.ppl.compiler.patterns.PatternBase, int, str, float, type, list]] = <beanmachine.ppl.compiler.patterns.AnyPattern object>, ctx: Optional[Union[beanmachine.ppl.compiler.patterns.PatternBase, int, str, float, type, list]] = <beanmachine.ppl.compiler.patterns.AnyPattern object>) Optional[Union[beanmachine.ppl.compiler.patterns.PatternBase, int, str, float, type, list]]
beanmachine.ppl.compiler.ast_patterns.aug_assign(target: Optional[Union[beanmachine.ppl.compiler.patterns.PatternBase, int, str, float, type, list]] = <beanmachine.ppl.compiler.patterns.AnyPattern object>, op: Optional[Union[beanmachine.ppl.compiler.patterns.PatternBase, int, str, float, type, list]] = <beanmachine.ppl.compiler.patterns.AnyPattern object>, value: Optional[Union[beanmachine.ppl.compiler.patterns.PatternBase, int, str, float, type, list]] = <beanmachine.ppl.compiler.patterns.AnyPattern object>) Optional[Union[beanmachine.ppl.compiler.patterns.PatternBase, int, str, float, type, list]]
beanmachine.ppl.compiler.ast_patterns.binary_compare(op: Optional[Union[beanmachine.ppl.compiler.patterns.PatternBase, int, str, float, type, list]] = <beanmachine.ppl.compiler.patterns.AnyPattern object>)
beanmachine.ppl.compiler.ast_patterns.binop(op: Optional[Union[beanmachine.ppl.compiler.patterns.PatternBase, int, str, float, type, list]] = <beanmachine.ppl.compiler.patterns.AnyPattern object>, left: Optional[Union[beanmachine.ppl.compiler.patterns.PatternBase, int, str, float, type, list]] = <beanmachine.ppl.compiler.patterns.AnyPattern object>, right: Optional[Union[beanmachine.ppl.compiler.patterns.PatternBase, int, str, float, type, list]] = <beanmachine.ppl.compiler.patterns.AnyPattern object>) Optional[Union[beanmachine.ppl.compiler.patterns.PatternBase, int, str, float, type, list]]
beanmachine.ppl.compiler.ast_patterns.boolop(op: Optional[Union[beanmachine.ppl.compiler.patterns.PatternBase, int, str, float, type, list]] = <beanmachine.ppl.compiler.patterns.AnyPattern object>, values: Optional[Union[beanmachine.ppl.compiler.patterns.PatternBase, int, str, float, type, list]] = <beanmachine.ppl.compiler.patterns.AnyPattern object>) Optional[Union[beanmachine.ppl.compiler.patterns.PatternBase, int, str, float, type, list]]
beanmachine.ppl.compiler.ast_patterns.call(func: Optional[Union[beanmachine.ppl.compiler.patterns.PatternBase, int, str, float, type, list]] = <beanmachine.ppl.compiler.patterns.AnyPattern object>, args: Optional[Union[beanmachine.ppl.compiler.patterns.PatternBase, int, str, float, type, list]] = <beanmachine.ppl.compiler.patterns.AnyPattern object>, keywords: Optional[Union[beanmachine.ppl.compiler.patterns.PatternBase, int, str, float, type, list]] = <beanmachine.ppl.compiler.patterns.AnyPattern object>) Optional[Union[beanmachine.ppl.compiler.patterns.PatternBase, int, str, float, type, list]]
beanmachine.ppl.compiler.ast_patterns.call_to(id: Optional[Union[beanmachine.ppl.compiler.patterns.PatternBase, int, str, float, type, list]] = <beanmachine.ppl.compiler.patterns.AnyPattern object>, args: Optional[Union[beanmachine.ppl.compiler.patterns.PatternBase, int, str, float, type, list]] = <beanmachine.ppl.compiler.patterns.AnyPattern object>) Optional[Union[beanmachine.ppl.compiler.patterns.PatternBase, int, str, float, type, list]]
beanmachine.ppl.compiler.ast_patterns.compare(left: Optional[Union[beanmachine.ppl.compiler.patterns.PatternBase, int, str, float, type, list]] = <beanmachine.ppl.compiler.patterns.AnyPattern object>, ops: Optional[Union[beanmachine.ppl.compiler.patterns.PatternBase, int, str, float, type, list]] = <beanmachine.ppl.compiler.patterns.AnyPattern object>, comparators: Optional[Union[beanmachine.ppl.compiler.patterns.PatternBase, int, str, float, type, list]] = <beanmachine.ppl.compiler.patterns.AnyPattern object>)
beanmachine.ppl.compiler.ast_patterns.equal(left: Optional[Union[beanmachine.ppl.compiler.patterns.PatternBase, int, str, float, type, list]] = <beanmachine.ppl.compiler.patterns.AnyPattern object>, right: Optional[Union[beanmachine.ppl.compiler.patterns.PatternBase, int, str, float, type, list]] = <beanmachine.ppl.compiler.patterns.AnyPattern object>)
beanmachine.ppl.compiler.ast_patterns.expr(value: Optional[Union[beanmachine.ppl.compiler.patterns.PatternBase, int, str, float, type, list]] = <beanmachine.ppl.compiler.patterns.AnyPattern object>) Optional[Union[beanmachine.ppl.compiler.patterns.PatternBase, int, str, float, type, list]]
beanmachine.ppl.compiler.ast_patterns.function_def(name: Optional[Union[beanmachine.ppl.compiler.patterns.PatternBase, int, str, float, type, list]] = <beanmachine.ppl.compiler.patterns.AnyPattern object>, args: Optional[Union[beanmachine.ppl.compiler.patterns.PatternBase, int, str, float, type, list]] = <beanmachine.ppl.compiler.patterns.AnyPattern object>, body: Optional[Union[beanmachine.ppl.compiler.patterns.PatternBase, int, str, float, type, list]] = <beanmachine.ppl.compiler.patterns.AnyPattern object>, decorator_list: Optional[Union[beanmachine.ppl.compiler.patterns.PatternBase, int, str, float, type, list]] = <beanmachine.ppl.compiler.patterns.AnyPattern object>, returns: Optional[Union[beanmachine.ppl.compiler.patterns.PatternBase, int, str, float, type, list]] = <beanmachine.ppl.compiler.patterns.AnyPattern object>) Optional[Union[beanmachine.ppl.compiler.patterns.PatternBase, int, str, float, type, list]]
beanmachine.ppl.compiler.ast_patterns.get_value(slice_field)
beanmachine.ppl.compiler.ast_patterns.greater_than(left: Optional[Union[beanmachine.ppl.compiler.patterns.PatternBase, int, str, float, type, list]] = <beanmachine.ppl.compiler.patterns.AnyPattern object>, right: Optional[Union[beanmachine.ppl.compiler.patterns.PatternBase, int, str, float, type, list]] = <beanmachine.ppl.compiler.patterns.AnyPattern object>)
beanmachine.ppl.compiler.ast_patterns.greater_than_equal(left: Optional[Union[beanmachine.ppl.compiler.patterns.PatternBase, int, str, float, type, list]] = <beanmachine.ppl.compiler.patterns.AnyPattern object>, right: Optional[Union[beanmachine.ppl.compiler.patterns.PatternBase, int, str, float, type, list]] = <beanmachine.ppl.compiler.patterns.AnyPattern object>)
beanmachine.ppl.compiler.ast_patterns.id_from_call(c: _ast.Call) str
beanmachine.ppl.compiler.ast_patterns.if_exp(test: Optional[Union[beanmachine.ppl.compiler.patterns.PatternBase, int, str, float, type, list]] = <beanmachine.ppl.compiler.patterns.AnyPattern object>, body: Optional[Union[beanmachine.ppl.compiler.patterns.PatternBase, int, str, float, type, list]] = <beanmachine.ppl.compiler.patterns.AnyPattern object>, orelse: Optional[Union[beanmachine.ppl.compiler.patterns.PatternBase, int, str, float, type, list]] = <beanmachine.ppl.compiler.patterns.AnyPattern object>) Optional[Union[beanmachine.ppl.compiler.patterns.PatternBase, int, str, float, type, list]]
beanmachine.ppl.compiler.ast_patterns.if_statement(test: Optional[Union[beanmachine.ppl.compiler.patterns.PatternBase, int, str, float, type, list]] = <beanmachine.ppl.compiler.patterns.AnyPattern object>, body: Optional[Union[beanmachine.ppl.compiler.patterns.PatternBase, int, str, float, type, list]] = <beanmachine.ppl.compiler.patterns.AnyPattern object>, orelse: Optional[Union[beanmachine.ppl.compiler.patterns.PatternBase, int, str, float, type, list]] = <beanmachine.ppl.compiler.patterns.AnyPattern object>) Optional[Union[beanmachine.ppl.compiler.patterns.PatternBase, int, str, float, type, list]]
beanmachine.ppl.compiler.ast_patterns.index(value: Optional[Union[beanmachine.ppl.compiler.patterns.PatternBase, int, str, float, type, list]] = <beanmachine.ppl.compiler.patterns.AnyPattern object>)
beanmachine.ppl.compiler.ast_patterns.keyword(arg: Optional[Union[beanmachine.ppl.compiler.patterns.PatternBase, int, str, float, type, list]] = <beanmachine.ppl.compiler.patterns.AnyPattern object>, value: Optional[Union[beanmachine.ppl.compiler.patterns.PatternBase, int, str, float, type, list]] = <beanmachine.ppl.compiler.patterns.AnyPattern object>) Optional[Union[beanmachine.ppl.compiler.patterns.PatternBase, int, str, float, type, list]]
beanmachine.ppl.compiler.ast_patterns.less_than(left: Optional[Union[beanmachine.ppl.compiler.patterns.PatternBase, int, str, float, type, list]] = <beanmachine.ppl.compiler.patterns.AnyPattern object>, right: Optional[Union[beanmachine.ppl.compiler.patterns.PatternBase, int, str, float, type, list]] = <beanmachine.ppl.compiler.patterns.AnyPattern object>)
beanmachine.ppl.compiler.ast_patterns.less_than_equal(left: Optional[Union[beanmachine.ppl.compiler.patterns.PatternBase, int, str, float, type, list]] = <beanmachine.ppl.compiler.patterns.AnyPattern object>, right: Optional[Union[beanmachine.ppl.compiler.patterns.PatternBase, int, str, float, type, list]] = <beanmachine.ppl.compiler.patterns.AnyPattern object>)
beanmachine.ppl.compiler.ast_patterns.module(body: Optional[Union[beanmachine.ppl.compiler.patterns.PatternBase, int, str, float, type, list]] = <beanmachine.ppl.compiler.patterns.AnyPattern object>) Optional[Union[beanmachine.ppl.compiler.patterns.PatternBase, int, str, float, type, list]]
beanmachine.ppl.compiler.ast_patterns.name(id: Optional[Union[beanmachine.ppl.compiler.patterns.PatternBase, int, str, float, type, list]] = <beanmachine.ppl.compiler.patterns.AnyPattern object>, ctx: Optional[Union[beanmachine.ppl.compiler.patterns.PatternBase, int, str, float, type, list]] = <beanmachine.ppl.compiler.patterns.AnyPattern object>) Optional[Union[beanmachine.ppl.compiler.patterns.PatternBase, int, str, float, type, list]]
beanmachine.ppl.compiler.ast_patterns.name_constant(value: Optional[Union[beanmachine.ppl.compiler.patterns.PatternBase, int, str, float, type, list]] = <beanmachine.ppl.compiler.patterns.AnyPattern object>) Optional[Union[beanmachine.ppl.compiler.patterns.PatternBase, int, str, float, type, list]]
beanmachine.ppl.compiler.ast_patterns.not_equal(left: Optional[Union[beanmachine.ppl.compiler.patterns.PatternBase, int, str, float, type, list]] = <beanmachine.ppl.compiler.patterns.AnyPattern object>, right: Optional[Union[beanmachine.ppl.compiler.patterns.PatternBase, int, str, float, type, list]] = <beanmachine.ppl.compiler.patterns.AnyPattern object>)
beanmachine.ppl.compiler.ast_patterns.num(n: Optional[Union[beanmachine.ppl.compiler.patterns.PatternBase, int, str, float, type, list]] = <beanmachine.ppl.compiler.patterns.AnyPattern object>) Optional[Union[beanmachine.ppl.compiler.patterns.PatternBase, int, str, float, type, list]]
beanmachine.ppl.compiler.ast_patterns.slice_pattern(lower: Optional[Union[beanmachine.ppl.compiler.patterns.PatternBase, int, str, float, type, list]] = <beanmachine.ppl.compiler.patterns.AnyPattern object>, upper: Optional[Union[beanmachine.ppl.compiler.patterns.PatternBase, int, str, float, type, list]] = <beanmachine.ppl.compiler.patterns.AnyPattern object>, step: Optional[Union[beanmachine.ppl.compiler.patterns.PatternBase, int, str, float, type, list]] = <beanmachine.ppl.compiler.patterns.AnyPattern object>) Optional[Union[beanmachine.ppl.compiler.patterns.PatternBase, int, str, float, type, list]]
beanmachine.ppl.compiler.ast_patterns.starred(value: Optional[Union[beanmachine.ppl.compiler.patterns.PatternBase, int, str, float, type, list]] = <beanmachine.ppl.compiler.patterns.AnyPattern object>, ctx: Optional[Union[beanmachine.ppl.compiler.patterns.PatternBase, int, str, float, type, list]] = <beanmachine.ppl.compiler.patterns.AnyPattern object>) Optional[Union[beanmachine.ppl.compiler.patterns.PatternBase, int, str, float, type, list]]
beanmachine.ppl.compiler.ast_patterns.subscript(value: Optional[Union[beanmachine.ppl.compiler.patterns.PatternBase, int, str, float, type, list]] = <beanmachine.ppl.compiler.patterns.AnyPattern object>, slice: Optional[Union[beanmachine.ppl.compiler.patterns.PatternBase, int, str, float, type, list]] = <beanmachine.ppl.compiler.patterns.AnyPattern object>, ctx: Optional[Union[beanmachine.ppl.compiler.patterns.PatternBase, int, str, float, type, list]] = <beanmachine.ppl.compiler.patterns.AnyPattern object>) Optional[Union[beanmachine.ppl.compiler.patterns.PatternBase, int, str, float, type, list]]
beanmachine.ppl.compiler.ast_patterns.unaryop(op: Optional[Union[beanmachine.ppl.compiler.patterns.PatternBase, int, str, float, type, list]] = <beanmachine.ppl.compiler.patterns.AnyPattern object>, operand: Optional[Union[beanmachine.ppl.compiler.patterns.PatternBase, int, str, float, type, list]] = <beanmachine.ppl.compiler.patterns.AnyPattern object>) Optional[Union[beanmachine.ppl.compiler.patterns.PatternBase, int, str, float, type, list]]
beanmachine.ppl.compiler.ast_patterns.unarysub(operand: Optional[Union[beanmachine.ppl.compiler.patterns.PatternBase, int, str, float, type, list]] = <beanmachine.ppl.compiler.patterns.AnyPattern object>) Optional[Union[beanmachine.ppl.compiler.patterns.PatternBase, int, str, float, type, list]]