| |
---|
| | |
---|
| | # Program Information |
---|
| | |
---|
| | PROGNAME = "tconfpy" |
---|
| | RCSID = "$Id: tconfpy.py,v 1.127 2004/03/21 14:05:42 tundra Exp $" |
---|
| | RCSID = "$Id: tconfpy.py,v 1.128 2004/03/21 14:10:52 tundra Exp $" |
---|
| | VERSION = RCSID.split()[2] |
---|
| | |
---|
| | # Copyright Information |
---|
| | |
---|
| |
---|
| | |
---|
| | global CondStack, MsgList, SymTable, INLITERAL |
---|
| | |
---|
| | orig = line # May need copy of original for debug output |
---|
| | line = ConditionLine(line) |
---|
| | condstate = True # Results of conditional tests kept here |
---|
| | |
---|
| | |
---|
| | ########## |
---|
| | # Beginning Of Line Parser |
---|
| | ########## |
---|
| |
---|
| | # LITERAL and ENDLITERAL Processing |
---|
| | # These get highest precedence because they block everything else. |
---|
| | ##### |
---|
| | |
---|
| | if line in (LITERAL, ENDLITERAL): |
---|
| | |
---|
| | if line == LITERAL: |
---|
| | if line.strip() in (LITERAL, ENDLITERAL): |
---|
| | |
---|
| | if line.strip() == LITERAL: |
---|
| | INLITERAL = True |
---|
| | |
---|
| | else: |
---|
| | INLITERAL = False |
---|
| |
---|
| | DebugMsg("dPARSEDLINE", (cfgfile, linenum, orig, line)) |
---|
| | |
---|
| | return |
---|
| | |
---|
| | |
---|
| | |
---|
| | line = ConditionLine(line) # Strip out comments and leading/trailing whitespace |
---|
| | condstate = True # Results of conditional tests kept here |
---|
| | |
---|
| | # Only attempt on non-blank lines for everything else |
---|
| | if line: |
---|
| | |
---|
| |
---|
| | |