diff --git a/BaseTools/Source/Python/Ecc/CParser.py b/BaseTools/Source/Python/Ecc/CParser.py index baa521f43c..41f2811430 100644 --- a/BaseTools/Source/Python/Ecc/CParser.py +++ b/BaseTools/Source/Python/Ecc/CParser.py @@ -98,16 +98,9 @@ class CParser(Parser): Parser.__init__(self, input) self.ruleMemo = {} - self.function_definition_stack = [] - self.postfix_expression_stack = [] + self.function_definition_stack = [] + self.postfix_expression_stack = [] - - - - - - - def printTokenInfo(self, line, offset, tokenText): print str(line)+ ',' + str(offset) + ':' + str(tokenText) diff --git a/BaseTools/Source/Python/Eot/CParser.py b/BaseTools/Source/Python/Eot/CParser.py index baa521f43c..41f2811430 100644 --- a/BaseTools/Source/Python/Eot/CParser.py +++ b/BaseTools/Source/Python/Eot/CParser.py @@ -98,16 +98,9 @@ class CParser(Parser): Parser.__init__(self, input) self.ruleMemo = {} - self.function_definition_stack = [] - self.postfix_expression_stack = [] + self.function_definition_stack = [] + self.postfix_expression_stack = [] - - - - - - - def printTokenInfo(self, line, offset, tokenText): print str(line)+ ',' + str(offset) + ':' + str(tokenText)