Back: Time-comparing
Up: Class reference
Forward: TokenStream class-instance creation
 
Top: GNU Smalltalk User's Guide
Contents: Table of Contents
Index: Class index
About: About this document

6.166 TokenStream

Defined in namespace Smalltalk
Category: Streams-Collections
I am not a typical part of the Smalltalk kernel class hierarchy. I operate on a stream of characters and return distinct whitespace-delimited groups of characters; I am used to parse the parameters of class-creation methods.

Basically, I parse off whitespace separated tokens as substrings and return them (next). If the entire contents of the string are requested, I return them as an Array containing the individual strings.

6.166.1 TokenStream class: instance creation  (class)
6.166.2 TokenStream: basic  (instance)
6.166.3 TokenStream: write methods  (instance)


6.166.1 TokenStream class: instance creation

on: aString
Answer a TokenStream working on aString

onStream: aStream
Answer a TokenStream working on the collection on which aStream is in turn streaming.


6.166.2 TokenStream: basic

atEnd
Answer whether the input stream has no more tokens.

next
Answer a new whitespace-separated token from the input stream


6.166.3 TokenStream: write methods

nextPut: anObject
This method should not be called for instances of this class.




This document was generated on May, 12 2002 using texi2html