code: def action(toktype):
      
      def outer(func):
          """Return a function that pushes a token onto the token queue."""
          def inner(lexer, text):
              """Push a token onto the token queue."""
              value = func(lexer, text)
              lexer.tokens.append(toktype(value, lexer.lineno, lexer.offset))
          return inner
      return outer
docs: Return a parser action property.