BlockIt
|
Functions | |
def | _parseCONSTANTDEFINE |
Variables | |
string | __doc__ |
tuple | CPPCOMMENT = pp.Literal("//") |
CCOMMENT = pp.cStyleComment | |
tuple | FCOMMENT = pp.Literal( "!" ) |
tuple | LINES = pp.Combine(pp.OneOrMore( pp.Word( pp.printables ) )) |
tuple | POUND = pp.Literal( '#' ) |
POUNDLINE = POUND+pp.restOfLine | |
tuple | POUNDNUMFILE = pp.lineStart+POUND+gram.NUM+pp.QuotedString("\"", multiline=False) |
tuple | IF = pp.CaselessKeyword('if') |
tuple | POUNDIF = pp.LineStart() |
tuple | ELSE = pp.CaselessKeyword('else') |
tuple | POUNDELSE = pp.LineStart() |
tuple | ENDIF = pp.CaselessKeyword('endif') |
tuple | POUNDENDIF = pp.LineStart() |
tuple | DEFINE = pp.Keyword('define') |
tuple | POUNDDEFINE = pp.LineStart() |
tuple | IFDEF = pp.CaselessKeyword('ifdef') |
tuple | POUNDIFDEF = pp.LineStart() |
tuple | IFNDEF = pp.CaselessKeyword('ifndef') |
tuple | POUNDIFNDEF = pp.LineStart() |
tuple | UNDEF = pp.CaselessKeyword('undef') |
tuple | POUNDUNDEF = pp.LineStart() |
tuple | CONSTANTDEFINE = pp.Suppress( POUNDDEFINE ) |
tuple | CHUNK = pp.Group( POUNDIF | POUNDIFDEF | POUNDIFNDEF ) |
tuple | CHUNK2 |
string | tmpstr |
def blockit::m4::grammars::_parseCONSTANTDEFINE | ( | ln | ) | [private] |
Definition at line 122 of file grammars.py.
00001 """ 00002 (C) 2010 Michael List, michael.list@gmail.com 00003 (C) 2010 David Car, david.car7@gmail.com 00004 """
Definition at line 26 of file grammars.py.
blockit::m4::grammars::CCOMMENT = pp.cStyleComment |
Definition at line 38 of file grammars.py.
tuple blockit::m4::grammars::CHUNK = pp.Group( POUNDIF | POUNDIFDEF | POUNDIFNDEF ) |
Definition at line 109 of file grammars.py.
00001 pp.Group( POUNDIFDEF + pp.Group( pp.ZeroOrMore( LINES ) ) + pp.Optional( POUNDELSE ) + \ 00002 pp.Group( pp.ZeroOrMore( LINES ) ) + POUNDENDIF )
Definition at line 116 of file grammars.py.
tuple blockit::m4::grammars::CONSTANTDEFINE = pp.Suppress( POUNDDEFINE ) |
Definition at line 100 of file grammars.py.
tuple blockit::m4::grammars::CPPCOMMENT = pp.Literal("//") |
Definition at line 37 of file grammars.py.
tuple blockit::m4::grammars::DEFINE = pp.Keyword('define') |
Definition at line 72 of file grammars.py.
tuple blockit::m4::grammars::ELSE = pp.CaselessKeyword('else') |
Definition at line 58 of file grammars.py.
tuple blockit::m4::grammars::ENDIF = pp.CaselessKeyword('endif') |
Definition at line 65 of file grammars.py.
tuple blockit::m4::grammars::FCOMMENT = pp.Literal( "!" ) |
Definition at line 39 of file grammars.py.
tuple blockit::m4::grammars::IF = pp.CaselessKeyword('if') |
Definition at line 51 of file grammars.py.
tuple blockit::m4::grammars::IFDEF = pp.CaselessKeyword('ifdef') |
Definition at line 77 of file grammars.py.
tuple blockit::m4::grammars::IFNDEF = pp.CaselessKeyword('ifndef') |
Definition at line 84 of file grammars.py.
tuple blockit::m4::grammars::LINES = pp.Combine(pp.OneOrMore( pp.Word( pp.printables ) )) |
Definition at line 41 of file grammars.py.
tuple blockit::m4::grammars::POUND = pp.Literal( '#' ) |
Definition at line 43 of file grammars.py.
blockit::m4::grammars::POUNDDEFINE = pp.LineStart() |
Definition at line 73 of file grammars.py.
tuple blockit::m4::grammars::POUNDELSE = pp.LineStart() |
Definition at line 59 of file grammars.py.
tuple blockit::m4::grammars::POUNDENDIF = pp.LineStart() |
Definition at line 66 of file grammars.py.
tuple blockit::m4::grammars::POUNDIF = pp.LineStart() |
Definition at line 52 of file grammars.py.
tuple blockit::m4::grammars::POUNDIFDEF = pp.LineStart() |
Definition at line 78 of file grammars.py.
tuple blockit::m4::grammars::POUNDIFNDEF = pp.LineStart() |
Definition at line 85 of file grammars.py.
blockit::m4::grammars::POUNDLINE = POUND+pp.restOfLine |
Definition at line 46 of file grammars.py.
tuple blockit::m4::grammars::POUNDNUMFILE = pp.lineStart+POUND+gram.NUM+pp.QuotedString("\"", multiline=False) |
Definition at line 47 of file grammars.py.
tuple blockit::m4::grammars::POUNDUNDEF = pp.LineStart() |
Definition at line 92 of file grammars.py.
00001 """ 00002 #ifdef NEVERDEFINE 00003 do something 00004 and more 00005 #else /* random comment */ 00006 do other 00007 do do 00008 #endif 00009 00010 #ifndef NEVERDEFINE 00011 unsigned int x,y,z; 00012 #endif 00013 """
Definition at line 143 of file grammars.py.
tuple blockit::m4::grammars::UNDEF = pp.CaselessKeyword('undef') |
Definition at line 91 of file grammars.py.