parameters: (name, parent=None, **defaults)
return_statement: return tokenGenerator
docstring: Function for creating Token objects with unique names and default attributes.
  
      TODO: Add a default system that has type checking and required checking (only in DEBUG)
docstring_summary: Function for creating Token objects with unique names and default attributes.
docstring_tokens: Function for creating Token objects with unique names and default attributes .
function: def newToken(name, parent=None, **defaults):
      """
      Function for creating Token objects with unique names and default attributes.
  
      TODO: Add a default system that has type checking and required checking (only in DEBUG)
      """
      if MooseDocs.LOG_LEVEL == logging.DEBUG:
          pass # Future consistency checking
  
      if parent is not None:
          old = defaults
          defaults = parent(None).attributes
          defaults.update(old)
  
      def tokenGenerator(parent, **kwargs):
          if MooseDocs.LOG_LEVEL == logging.DEBUG:
              pass # Future consistency checking
          inputs = copy.copy(defaults)
          inputs.update(**kwargs)
          return Token(name, parent, **inputs)
  
      return tokenGenerator
function_tokens: def newToken ( name , parent = None , * * defaults ) : if MooseDocs . LOG_LEVEL == logging . DEBUG : pass # Future consistency checking if parent is not None : old = defaults defaults = parent ( None ) . attributes defaults . update ( old ) def tokenGenerator ( parent , * * kwargs ) : if MooseDocs . LOG_LEVEL == logging . DEBUG : pass # Future consistency checking inputs = copy . copy ( defaults ) inputs . update ( * * kwargs ) return Token ( name , parent , * * inputs ) return tokenGenerator