Patent ID: 7661096
Filing Date: 2010-02-09
Classification: G06F

Abstract:
1. A generator compilation system, the system that includes a processor and a computer-readable-storage-medium storing the following components that are executable by the processor: a receiver component that receives a stream, wherein the stream includes a sequence of one or more elements; a type component that determines whether the stream is nested or non-nested by identifying a type of the stream, wherein the stream is non-nested when the type is enumerable, and the stream is nested when the type is stream; an adapter component that enables iteration across the non-nested stream when the stream is determined to be a non-nested stream to produce a state output in accordance with nested stream states, the iteration across the non-nested stream comprising: an enumeration component that enables iteration across the nested stream when the stream is determined to be a nested stream by recursively using a stack to produce a flattened stream that enumerates one or more elements, the iteration across the nested stream comprising: