Package Bio :: Package Nexus :: Module Nexus :: Class CharBuffer
[hide private]
[frames] | no frames]

Class CharBuffer

source code

Helps reading NEXUS-words and characters from a buffer.

Instance Methods [hide private]
 
__init__(self, string) source code
 
peek(self) source code
 
peek_nonwhitespace(self) source code
 
next(self) source code
 
next_nonwhitespace(self) source code
 
skip_whitespace(self) source code
 
next_until(self, target) source code
 
peek_word(self, word) source code
 
next_word(self)
Return the next NEXUS word from a string.
source code
 
rest(self)
Return the rest of the string without parsing.
source code
Method Details [hide private]

next_word(self)

source code 

Return the next NEXUS word from a string.

This deals with single and double quotes, whitespace and punctuation.