Skip to content

Commit 76f1b3a

Browse files
committed
✨ BigFloatに新機能を沢山追加(sqrtで100万桁の精度を確認)
1 parent 8556fd4 commit 76f1b3a

File tree

11 files changed

+582
-127
lines changed

11 files changed

+582
-127
lines changed

JavaLibraryScript.code-workspace

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
"bat": "cmd /c",
1111
},
1212
"cSpell.words": [
13+
"Chebyshev",
1314
"javalibraryscript",
1415
"prec",
1516
"prereleased",

dev/build/GenerateJsdocMd.js

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,10 @@ ${block.description || "説明なし"}\n\n`;
200200
returns: this._parseJsDocReturns(jsdoc),
201201
};
202202

203+
if (data.description === "") {
204+
console.log(`┃┃ ${CL.yellow("not get description")}: ${CL.brightCyan(name)}`);
205+
}
206+
203207
if (type === "class") {
204208
const constructorJsDoc = this._extractConstructor(code.slice(match.index));
205209

@@ -291,13 +295,17 @@ ${block.description || "説明なし"}\n\n`;
291295
*/
292296
static _parseJsDocParams(code) {
293297
const lines = code.split("\n");
294-
const paramRegex = /@param\s+{([^}]+)}\s+(\w+)/;
298+
const paramRegex = /@param\s+{((?:[^{}]|\{[^{}]*\})+)}\s+(?:([\w$]+)|\[([\w$]+)(?:=[^\s]+?)?\])/;
299+
const notGetParamRegex = /@param\s+{.+?}\s+\[[^\s.]+?\]/;
295300
const params = [];
296301
for (const line of lines) {
297302
const match = line.match(paramRegex);
298303
if (match) {
299-
const [, type, name] = match;
304+
const type = match[1];
305+
const name = match[2] || match[3];
300306
params.push({ name, type });
307+
} else if (notGetParamRegex.test(line)) {
308+
console.log(`┃┃ ${CL.red("not get param")}: ${line.trim()}`);
301309
}
302310
}
303311
return params;
@@ -311,12 +319,15 @@ ${block.description || "説明なし"}\n\n`;
311319
static _parseJsDocReturns(code) {
312320
const lines = code.split("\n");
313321
const returnsRegex = /@returns?\s+{([^}]+)}/;
322+
const notGetReturnsRegex = /@returns?\s+{/;
314323
const returns = [];
315324
for (const line of lines) {
316325
const match = line.match(returnsRegex);
317326
if (match) {
318-
const [, type] = match;
327+
const type = match[1];
319328
returns.push(type);
329+
} else if (notGetReturnsRegex.test(line)) {
330+
console.log(`┃┃ ${CL.red("not get returns")}: ${line.trim()}`);
320331
}
321332
}
322333
return returns;

0 commit comments

Comments
 (0)