Example #1
0
 def create(*args):
     name = '**'
     args = [Arg('e1', None), Arg('e2', None)]
     return PowerFun(name, args)
Example #2
0
    def create(*args):
        name = '%%'
        args = [Arg('e1', None), Arg('e2', None)]

        return DivModFun(name, args)
Example #3
0
 def create(*args):
     name = '*'
     args = [Arg('e1', None), Arg('e2', None)]
     return MultiplyFun(name, args)
Example #4
0
 def create(*args):
     name = '/'
     args = [Arg('e1', None), Arg('e2', None)]
     return DivideFun(name, args)
Example #5
0
 def create(*args):
     name = 'c'
     args = [Arg('...', None)]
     return VectorFun(name, args)
Example #6
0
 def create(*args):
     name = '-'
     args = [Arg('e1', None), Arg('e2', None)]
     return SubtractFun(name, args)
Example #7
0
 def create(*args):
     name = '!'
     args = [Arg('x', None)]
     return NotFun(name, args)
Example #8
0
 def create(*args):
     name = 'integer'
     args = [Arg('length', Atomic(0, types.IntegerType()))]
     return IntegerFun(name, args)
Example #9
0
 def create(*args):
     name = '&'
     args = [Arg('x', None), Arg('y', None)]
     return AndFun(name, args)
Example #10
0
 def create(*args):
     name = '|'
     args = [Arg('x', None), Arg('y', None)]
     return OrFun(name, args)
Example #11
0
 def create(*args):
     name = 'list'
     args = [Arg('...', None)]
     return ListFun(name, args)
Example #12
0
 def create(*args):
     name = '<-'
     args = [Arg('x', None), Arg('value', None)]
     return ArrowDefaultAssignFun(name, args)
Example #13
0
 def create(*args):
     name = 'logical'
     args = [Arg('length', Atomic(0, types.IntegerType()))]
     return LogicalFun(name, args)
Example #14
0
 def create(*args):
     name = 'cat'
     args = [Arg('...', None)]
     return PowerFun(name, args)
Example #15
0
 def create(*args):
     name = '+'
     args = [Arg('e1', None), Arg('e2', None)]
     return AddFun(name, args)
Example #16
0
 def create(*args):
     name = '['
     args = [Arg('...', None)]
Example #17
0
 def create(*args):
     name = 'numeric'
     args = [Arg('length', Atomic(0, types.IntegerType()))]
     return NumericFun(name, args)