Home | History | Annotate | Download | only in include

Lines Matching full:stream

60 /// TODO: add mechanism to detect/puke on modification after reading from stream
82 /// The element or stream description; usually has name of the token or
88 /// Pointer to the tree adaptor in use for this stream
92 /// Once a node / subtree has been used in a stream, it must be dup'ed
99 // Pointer to the recognizer shared state to which this stream belongs
105 /// Reset the condition of this stream so that it appears we have
108 void (*reset) (struct ANTLR3_REWRITE_RULE_ELEMENT_STREAM_struct * stream);
110 /// Add a new pANTLR3_BASE_TREE to this stream
112 void (*add) (struct ANTLR3_REWRITE_RULE_ELEMENT_STREAM_struct * stream, void *el, void (ANTLR3_CDECL *freePtr)(void *));
114 /// Return the next element in the stream. If out of elements, throw
117 void * (*next) (struct ANTLR3_REWRITE_RULE_ELEMENT_STREAM_struct * stream);
118 pANTLR3_BASE_TREE (*nextTree) (struct ANTLR3_REWRITE_RULE_ELEMENT_STREAM_struct * stream);
119 void * (*nextToken) (struct ANTLR3_REWRITE_RULE_ELEMENT_STREAM_struct * stream);
120 void * (*_next) (struct ANTLR3_REWRITE_RULE_ELEMENT_STREAM_struct * stream);
126 void * (*dup) (struct ANTLR3_REWRITE_RULE_ELEMENT_STREAM_struct * stream, void * el);
128 /// Ensure stream emits trees; tokens must be converted to AST nodes.
131 pANTLR3_BASE_TREE (*toTree) (struct ANTLR3_REWRITE_RULE_ELEMENT_STREAM_struct * stream, void * el);
135 ANTLR3_BOOLEAN (*hasNext) (struct ANTLR3_REWRITE_RULE_ELEMENT_STREAM_struct * stream);
146 pANTLR3_BASE_TREE (*nextNode) (struct ANTLR3_REWRITE_RULE_ELEMENT_STREAM_struct * stream);
148 /// Number of elements available in the stream
150 ANTLR3_UINT32 (*size) (struct ANTLR3_REWRITE_RULE_ELEMENT_STREAM_struct * stream);
154 void * (*getDescription) (struct ANTLR3_REWRITE_RULE_ELEMENT_STREAM_struct * stream);
156 void (*free) (struct ANTLR3_REWRITE_RULE_ELEMENT_STREAM_struct * stream);
161 /// This is an implementation of a token stream, which is basically an element
162 /// stream that deals with tokens only.
166 /// This is an implementation of a subtree stream which is a set of trees
167 /// modelled as an element stream.
171 /// This is an implementation of a node stream, which is basically an element
172 /// stream that deals with tree nodes only.