Package Pyblio :: Package Format :: Module DSL
[show private | hide private]
[frames | no frames]

Module Pyblio.Format.DSL

Basic syntactic elements used to format a citation.

This module defines the base syntax elements providing the formatting domain specific language.
Classes
all  
Glue A base class that known how to join together multiple fragments of DSL code.
one  
switch The switch operator helps in bringing together multiple citation parts, according to the value of a Txo.

Function Summary
  join(middle, last)
  lazy(fn)
Transform a simple function into a lazy function lifted in the formatting system.

Variable Summary
_Tag BR = DSL.Tag('br', children=[_S1T('')])
dict glob = {'all': <class 'Pyblio.Format.DSL.all'>, 'S2': <m...

Function Details

lazy(fn)

Transform a simple function into a lazy function lifted in the formatting system.

This is only sugar : the initial function must be aware that every argument must be made strict by calling them before use.

Variable Details

BR

Type:
_Tag
Value:
DSL.Tag('br', children=[_S1T('')])                                     

glob

Type:
dict
Value:
{'A': 'A',
 'B': 'B',
 'BR': DSL.Tag('br', children=[_S1T('')]),
 'Glue': <class 'Pyblio.Format.DSL.Glue'>,
 'I': 'I',
 'Missing': <class Pyblio.Format.Base.Missing at 0xb7ad902c>,
 'S2': <module 'Pyblio.Format.S2' from '/home/fred/devel/infoscience/s\
rc/dependencies/pybliographer/pyblio/Pyblio/Format/S2.pyc'>,
...                                                                    

Generated by Epydoc 2.1 on Wed Feb 15 23:19:38 2006 http://epydoc.sf.net