dissect.cstruct.expression
#
Module Contents#
Classes#
Expression parser for simple calculations in definitions. |
- class dissect.cstruct.expression.Expression(cstruct: Expression.__init__.cstruct, expression: str)#
Expression parser for simple calculations in definitions.
- operators = [('*',), ('/',), ('%',), ('+',), ('-',), ('>>',), ('<<',), ('&',), ('^',), ('|',)]#
- __repr__() str #
Return repr(self).
- evaluate(context: Dict[str, int] = None) int #
- evaluate_part(buf: str, context: Dict[str, int]) int #