loki.expression.mixins

Functions

loki_make_stringifier(self[, ...])

Return a LokiStringifyMapper instance that can be used to generate a human-readable representation of self.

Classes

StrCompareMixin()

Mixin to enable comparing expressions to strings.

loki_make_stringifier(self, originating_stringifier=None)

Return a LokiStringifyMapper instance that can be used to generate a human-readable representation of self.

This is used as common abstraction for the make_stringifier() method in Pymbolic expression nodes.

class StrCompareMixin

Bases: object

Mixin to enable comparing expressions to strings.

The purpose of the string comparison override is to reliably and flexibly identify expression symbols from equivalent strings.

make_stringifier(originating_stringifier=None)

Return a LokiStringifyMapper instance that can be used to generate a human-readable representation of self.

This is used as common abstraction for the make_stringifier() method in Pymbolic expression nodes.