diff options
Diffstat (limited to 'nodes.py')
-rw-r--r-- | nodes.py | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -106,6 +106,13 @@ class IfStatement(Statement): self.trueblock = trueblock self.falseblock = falseblock +class ElifStatement(Statement): + def __init__(self, clause, trueblock, elseblock, lineno): + Statement.__init__(self, lineno) + self.clause = clause + self.trueblock = trueblock + self.elseblock = elseblock + def get_clause(self): return self.clause |