Package Pyblio :: Package Parsers :: Package Syntax :: Package BibTeX :: Module Parser
[show private | hide private]
[frames | no frames]

Module Pyblio.Parsers.Syntax.BibTeX.Parser

Stream oriented reading of a BibTeX file, with no actual semantic operation on the content. Tries to return _everything_ from the file, including comments, strings,...
Classes
ATComment  
Block A textual block, as a sequence of text and commands
Cache  
Cmd A LaTeX \-command
Comment A bibtex file comment
Context  
IBibTeX  
Join A value, as a concatenation of blocks
Record  
Text  

Exceptions
EndOfFile  

Function Summary
  read(fd, charset)
  _on_open(fd, ctx)
Called at the opening of a record
  _on_out(fd, ctx)
Called when the parser is not in a record

Variable Summary
int ST_DONE = 2                                                                     
int ST_OPEN = 1                                                                     
int ST_OUT = 0                                                                     
SRE_Pattern _brace_re = [\(\)"\{\}\\]
SRE_Pattern _cmd_re = (\w+|\S| )(.*)
dict _fstm = {0: <function _on_out at 0xa6a1b684>, 1: <functi...
SRE_Pattern _inline_re = ([,#=])
SRE_Pattern _record_start = \s*@\s*(\w+)(.*)

Function Details

_on_open(fd, ctx)

Called at the opening of a record

_on_out(fd, ctx)

Called when the parser is not in a record

Variable Details

ST_DONE

Type:
int
Value:
2                                                                     

ST_OPEN

Type:
int
Value:
1                                                                     

ST_OUT

Type:
int
Value:
0                                                                     

_brace_re

Type:
SRE_Pattern
Value:
[\(\)"\{\}\\]                                                          

_cmd_re

Type:
SRE_Pattern
Value:
(\w+|\S| )(.*)                                                         

_fstm

Type:
dict
Value:
{0: <function _on_out at 0xa6a1b684>, 1: <function _on_open at 0xa6a1b\
79c>}                                                                  

_inline_re

Type:
SRE_Pattern
Value:
([,#=])                                                                

_record_start

Type:
SRE_Pattern
Value:
\s*@\s*(\w+)(.*)                                                       

Generated by Epydoc 2.1 on Sun Sep 24 23:52:43 2006 http://epydoc.sf.net