Package mmLib :: Module mmCIF :: Class mmCIFFileParser
[hide private]
[frames] | no frames]

Class mmCIFFileParser

source code

object --+
         |
        mmCIFFileParser

Stateful parser which uses the mmCIFElementFile tokenizer to read a mmCIF file and convert it into the mmCIFData/mmCIFTable/mmCIFRow data hierarchy.

Instance Methods [hide private]
 
parse_file(self, fileobj, cif_file) source code
 
syntax_error(self, err) source code
 
split_token(self, tokx)
Returns the mmCIF token split into a 2-tuple: (reserved word, name) where directive is one of the mmCIF reserved words: data_, loop_, global_, save_, stop_
source code
 
parse(self, token_iter, cif_file)
Stateful parser for mmCIF files.
source code
 
gen_token_iter(self, fileobj) source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __init__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

parse(self, token_iter, cif_file)

source code 
Stateful parser for mmCIF files.

XXX: loop_, data_, save_ tags are handled in a case-sensitive
     manor. These tokens are case-insensitive.