code: function (token) {
          var clazz = token.peek();
          if (!clazz.match(/^[A-Z][_a-zA-Z$0-9]*$/))
              throw _cs.exception("validate", "parse error: invalid class type \"" + clazz + "\"");
          token.skip();
          return { type: "class", name: clazz };
      }
docs: /*  parse JavaScript class specification