diff --git a/tconfpy-spec.txt b/tconfpy-spec.txt index a24affd..95e9a0e 100644 --- a/tconfpy-spec.txt +++ b/tconfpy-spec.txt @@ -1,4 +1,4 @@ -$Id: tconfpy-spec.txt,v 1.102 2004/03/09 23:50:16 tundra Exp $ +$Id: tconfpy-spec.txt,v 1.103 2004/03/14 09:16:06 tundra Exp $ tconfpy SPECIFICATION ===================== @@ -9,7 +9,7 @@ tconfpy.ParseConfig(FileName, Options, IgnoreCase=False, Debug=False) - ---> [SymTable, ErrorrMsgs, WarningMsgs, DebugMsgs, ParseOK] + ---> [SymTable, ErrorMsgs, WarningMsgs, DebugMsgs] where, @@ -67,11 +67,9 @@ ErrorMsgs ---> List of Error Messages -DebugMsgs ---> List of Debug Messages (empty if Debug=False) - WarningMsgs ---> List of Warning Messages -ParseOK ---> If True, parsing was successful. +DebugMsgs ---> List of Debug Messages (empty if Debug=False) ------------------------------------------------------------------------------ @@ -123,11 +121,14 @@ All conditionals except Existential, are string literal tests (with possible case ignored). -.include REF | Filename # Inline include +CONDSTR = ([var]|string)+ -.if REF == REF | String # Equality -.if REF != REF | String # Inequality -.if REF # Existential +.include CONDSTR # Inline include + +.if CONDSTR == CONDSTR # Equality +.if CONDSTR != CONDSTR # Inequality +.if [var]+ # Existential +.ifnot [var]+ .endif # Conditional block delimiter