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.
i18n Translatable content.
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'>, 'Span': ...
_record_key record_key = <Pyblio.Format.DSL._record_key object at 0x...

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 0xa7b3d59c>,
 'S2': <module 'Pyblio.Format.S2' from '/home/fred/devel/pyblio/1.3/Py\
blio/Format/S2.pyc'>,
...                                                                    

record_key

Type:
_record_key
Value:
<Pyblio.Format.DSL._record_key object at 0xa786f44c>                   

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