Parsing¶
ratus.parse
¶
-
class
ratus.parse.
BinaryOp
(op_type: ratus.parse.BinaryOpType, left: ratus.parse.Expression, right: ratus.parse.Expression)[source]¶ Binary operation.
Binary operations have a type that maps them to the operation that is being performed and left and right operands upon which the operation is performed.
-
class
ratus.parse.
Function
(name: str, args: List[ratus.parse.Expression])[source]¶ Function call.
Functions have a name which is used to look them up in the executor and a list of arguments that the function should be called with.