code: function expectChar(arg, msg) {
          if (input.charAt(i) === arg) {
              skipWhitespace(1);
              return arg;
          }
          error(msg || "expected '" + arg + "' got '" + input.charAt(i) + "'");
      }
docs: Specialization of expect()