Stream
stream
¶
T = TypeVar('T')
module-attribute
¶
TCov = TypeVar('TCov', covariant=True)
module-attribute
¶
TCon = TypeVar('TCon', contravariant=True)
module-attribute
¶
ReadableStream
¶
Bases: ABC, Generic[TCov]
Abstract base class for readable stream interpreter model objects.
Source code in xdsl/interpreters/utils/stream.py
WritableStream
¶
Bases: ABC, Generic[TCon]
Abstract base class for readable stream interpreter model objects.
Source code in xdsl/interpreters/utils/stream.py
Nats
dataclass
¶
Bases: ReadableStream[IntegerAttr[I32]]
A stream designed for testing, outputs the next natural number each time it's read.
Source code in xdsl/interpreters/utils/stream.py
Acc
dataclass
¶
Bases: WritableStream[IntegerAttr[I32]]
A stream designed for testing, appends the next natural number written.