BlockIt
blockit::basegrammar Namespace Reference

Functions

def isbin
def isoct
def ishex

Variables

string __doc__
tuple VALIDNAME = pp.Word(pp.alphas+'_', pp.alphanums+'_')
tuple NUM = pp.Word(pp.nums)
tuple INTEGER = pp.Combine((pp.Optional('-')|pp.Optional('+'))+pp.Word(pp.nums))
tuple DECIMAL_NUM = pp.Combine(INTEGER+'.'+pp.Optional(NUM)+pp.Suppress(pp.Optional('f')|pp.Optional('F')))
tuple HEX_NUM = pp.Combine( pp.Literal( '0x' ) + pp.Word( pp.nums + 'abcdefABCDEF' ))
tuple ENGINEERING_NUM
tuple BIN_NUM = pp.Word('01')
tuple UNIXFILE = pp.Group(pp.OneOrMore(pp.Literal("/") + pp.Word(pp.alphanums + '_-.')))

Function Documentation

def blockit::basegrammar::isbin (   instr)

Definition at line 41 of file basegrammar.py.

def blockit::basegrammar::ishex (   instr)

Definition at line 51 of file basegrammar.py.

def blockit::basegrammar::isoct (   instr)

Definition at line 48 of file basegrammar.py.


Variable Documentation

Initial value:
00001 """
00002 (C) 2010,2011 Michael List, michael.list@gmail.com
00003 (C) 2010,2011 David Car, david.car7@gmail.com
00004 """

Definition at line 18 of file basegrammar.py.

tuple blockit::basegrammar::BIN_NUM = pp.Word('01')

Definition at line 34 of file basegrammar.py.

tuple blockit::basegrammar::DECIMAL_NUM = pp.Combine(INTEGER+'.'+pp.Optional(NUM)+pp.Suppress(pp.Optional('f')|pp.Optional('F')))

Definition at line 29 of file basegrammar.py.

Initial value:
00001 pp.Suppress(pp.Optional('(')) + pp.Combine( (DECIMAL_NUM | INTEGER) + \
00002     pp.oneOf( 'e d', caseless=True ) + pp.Optional( pp.oneOf('+ -') ) + NUM ) + \
00003     pp.Suppress(pp.Optional(')'))

Definition at line 31 of file basegrammar.py.

tuple blockit::basegrammar::HEX_NUM = pp.Combine( pp.Literal( '0x' ) + pp.Word( pp.nums + 'abcdefABCDEF' ))

Definition at line 30 of file basegrammar.py.

tuple blockit::basegrammar::INTEGER = pp.Combine((pp.Optional('-')|pp.Optional('+'))+pp.Word(pp.nums))

Definition at line 28 of file basegrammar.py.

tuple blockit::basegrammar::NUM = pp.Word(pp.nums)

Definition at line 27 of file basegrammar.py.

tuple blockit::basegrammar::UNIXFILE = pp.Group(pp.OneOrMore(pp.Literal("/") + pp.Word(pp.alphanums + '_-.')))

Definition at line 58 of file basegrammar.py.

tuple blockit::basegrammar::VALIDNAME = pp.Word(pp.alphas+'_', pp.alphanums+'_')

Definition at line 25 of file basegrammar.py.

 All Classes Namespaces Files Functions Variables Properties