code: def build(self):
          
          self.logger = logging.getLogger('ply_parser')
  
          self.lexer = PynspectFilterLexer()
          self.lexer.build()
  
          # Skip the first item in self.lexer.tokens, which is the 'EXP_ALL' token
          # to get rid of following message:
          # ... Token 'EXP_ALL' defined, but not used
          # ... There is 1 unused token
          #
          self.tokens = self.lexer.tokens[1:]
  
          self.parser = ply.yacc.yacc(
              module=self,
              #debuglog=self.logger,
              errorlog=self.logger
              #start='statements',
              #debug=yacc_debug,
              #optimize=yacc_optimize,
              #tabmodule=yacctab
          )
docs: Build/rebuild the parser object