code: def Tok(kind, loc=None):
      
      @llrule(loc, lambda parser: [kind])
      def rule(parser):
          return parser._accept(kind)
      return rule
docs: A rule that accepts a token of kind ``kind`` and returns it, or returns None.