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

Module Parser

source code

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 [hide private]
  IBibTeX
  Comment
A bibtex file comment
  ATComment
  Record
  Join
A value, as a concatenation of blocks
  Text
  Cmd
A LaTeX \-command
  Block
A textual block, as a sequence of text and commands
  EndOfFile
  Cache
  Context
Functions [hide private]
 
_on_out(fd, ctx)
Called when the parser is not in a record
source code
 
_on_open(fd, ctx)
Called at the opening of a record
source code
 
read(fd, charset='utf-8') source code
Variables [hide private]
  _record_start = re.compile(r'\s*@\s*(\w+)(.*)')
  _brace_re = re.compile(r'[\(\)"\{\}\\]')
  _cmd_re = re.compile(r'(\w+|\S| )(.*)')
  _inline_re = re.compile(r'([,#=])')
  _fstm = {0: <function _on_out at 0x880dd84>, 1: <function _on_...
  ST_DONE = 2
  ST_OPEN = 1
  ST_OUT = 0
Variables Details [hide private]

_fstm

Value:
{ST_OUT: _on_out, ST_OPEN: _on_open,}