nadesiko3 3.7.2 → 3.7.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/batch/command.txt +472 -469
- package/batch/pickup_command.nako3 +1 -1
- package/core/.eslintrc.cjs +10 -3
- package/core/package-lock.json +1184 -645
- package/core/package.json +4 -5
- package/core/src/nako3.mjs +8 -6
- package/core/src/nako3.mts +19 -16
- package/core/src/nako_ast.mts +2 -3
- package/core/src/nako_core_version.mjs +2 -2
- package/core/src/nako_core_version.mts +2 -2
- package/core/src/nako_csv.mjs +1 -0
- package/core/src/nako_csv.mts +3 -2
- package/core/src/nako_from_dncl.mjs +1 -1
- package/core/src/nako_from_dncl.mts +1 -1
- package/core/src/nako_from_dncl2.mjs +1 -1
- package/core/src/nako_from_dncl2.mts +2 -2
- package/core/src/nako_gen.mjs +37 -35
- package/core/src/nako_gen.mts +70 -67
- package/core/src/nako_global.mjs +3 -2
- package/core/src/nako_global.mts +3 -2
- package/core/src/nako_lexer.mjs +3 -3
- package/core/src/nako_lexer.mts +3 -3
- package/core/src/nako_logger.mjs +1 -1
- package/core/src/nako_logger.mts +2 -2
- package/core/src/nako_parser3.mjs +67 -59
- package/core/src/nako_parser3.mts +96 -90
- package/core/src/nako_parser_base.mts +3 -3
- package/core/src/nako_prepare.mjs +1 -1
- package/core/src/nako_prepare.mts +1 -1
- package/core/src/nako_source_mapping.mts +0 -1
- package/core/src/nako_token.mts +8 -8
- package/core/src/nako_types.mts +1 -1
- package/core/src/plugin_api.mts +1 -1
- package/core/src/plugin_csv.mjs +1 -0
- package/core/src/plugin_csv.mts +2 -1
- package/core/src/plugin_math.mjs +2 -2
- package/core/src/plugin_math.mts +3 -3
- package/core/src/plugin_promise.mjs +1 -1
- package/core/src/plugin_promise.mts +1 -1
- package/core/src/plugin_system.mjs +117 -40
- package/core/src/plugin_system.mts +132 -58
- package/core/src/plugin_test.mjs +3 -1
- package/core/src/plugin_test.mts +3 -1
- package/core/test/basic_test.mjs +16 -0
- package/core/test/calc_test.mjs +7 -0
- package/core/test/plugin_system_test.mjs +33 -0
- package/doc/files.md +4 -4
- package/doc/plugins.md +1 -1
- package/package.json +9 -9
- package/release/_hash.txt +36 -121
- package/release/_script-tags.txt +16 -33
- package/release/command.json +1 -1
- package/release/command.json.js +1 -1
- package/release/command_cnako3.json +1 -1
- package/release/command_list.json +1 -1
- package/release/edit_main.js +3 -3
- package/release/edit_main.js.map +2 -2
- package/release/editor.js +3 -3
- package/release/plugin_markup.js +53 -53
- package/release/plugin_markup.js.map +3 -3
- package/release/plugin_weykturtle3d.js +1 -1
- package/release/plugin_weykturtle3d.js.map +4 -4
- package/release/version.js +3 -3
- package/release/version_main.js +3 -3
- package/release/version_main.js.map +2 -2
- package/release/wnako3.js +66 -66
- package/release/wnako3.js.map +3 -3
- package/release/wnako3webworker.js +58 -58
- package/release/wnako3webworker.js.map +3 -3
- package/src/browsers.txt +30 -20
- package/src/cnako3mod.mjs +19 -18
- package/src/cnako3mod.mts +17 -16
- package/src/deno_wrapper.mjs +6 -6
- package/src/deno_wrapper.mts +11 -11
- package/src/nako_version.mjs +2 -2
- package/src/nako_version.mts +2 -2
- package/src/plugin_browser.mjs +2 -2
- package/src/plugin_browser.mts +5 -5
- package/src/plugin_browser_ajax.mjs +2 -2
- package/src/plugin_browser_ajax.mts +2 -2
- package/src/plugin_browser_api.mts +0 -1
- package/src/plugin_browser_crypto.mjs +8 -8
- package/src/plugin_browser_crypto.mts +13 -13
- package/src/plugin_browser_dom_basic.mjs +3 -3
- package/src/plugin_browser_dom_basic.mts +5 -7
- package/src/plugin_browser_dom_event.mjs +1 -1
- package/src/plugin_browser_dom_event.mts +2 -1
- package/src/plugin_browser_dom_parts.mjs +33 -18
- package/src/plugin_browser_dom_parts.mts +60 -59
- package/src/plugin_browser_speech.mjs +1 -1
- package/src/plugin_browser_speech.mts +1 -1
- package/src/plugin_node.mjs +5 -3
- package/src/plugin_node.mts +6 -4
- package/src/plugin_weykturtle3d.mjs +38 -15
- package/src/plugin_weykturtle3d.mts +279 -240
- package/src/plugin_weykturtle3d_three.mjs +3 -0
- package/src/plugin_weykturtle3d_three.mts +214 -0
- package/src/plugin_weykturtle3d_threeutil.mjs +28 -0
- package/src/plugin_weykturtle3d_threeutil.mts +31 -0
- package/src/wnako3.mjs +1 -0
- package/src/wnako3.mts +1 -0
- package/src/wnako3mod.mjs +5 -2
- package/src/wnako3mod.mts +6 -3
- package/batch/command_nakopad.txt +0 -1177
- package/core/__report.txt +0 -617
- package/core/command/plugin_snako.mjs +0 -112
- package/core/command/snako.mjs +0 -108
- package/release/core_src_nako_josi_list_mjs.js +0 -3
- package/release/core_src_nako_josi_list_mjs.js.LICENSE.txt +0 -3
- package/release/core_src_nako_josi_list_mjs.js.map +0 -1
- package/release/core_src_nako_reserved_words_mjs.js +0 -3
- package/release/core_src_nako_reserved_words_mjs.js.LICENSE.txt +0 -3
- package/release/core_src_nako_reserved_words_mjs.js.map +0 -1
- package/release/editor/edit_main.js +0 -48
- package/release/editor/edit_main.js.map +0 -7
- package/release/editor/version_main.js +0 -44
- package/release/editor/version_main.js.map +0 -7
- package/release/editor.js.LICENSE.txt +0 -91
- package/release/editor.js.map +0 -1
- package/release/nako_gen_async.js +0 -2
- package/release/nako_gen_async.js.LICENSE.txt +0 -21
- package/release/nako_gen_async.js.map +0 -1
- package/release/plugin_caniuse.js.LICENSE.txt +0 -15
- package/release/plugin_datetime.js.LICENSE.txt +0 -21
- package/release/plugin_kansuji.js.LICENSE.txt +0 -3
- package/release/plugin_markup.js.LICENSE.txt +0 -15
- package/release/plugin_toml.js +0 -295
- package/release/plugin_toml.js.map +0 -7
- package/release/plugin_turtle.js.LICENSE.txt +0 -9
- package/release/plugin_webworker.js.LICENSE.txt +0 -3
- package/release/plugin_weykturtle3d.js.LICENSE.txt +0 -3
- package/release/src/plugin_caniuse.js +0 -2
- package/release/src/plugin_caniuse.js.map +0 -7
- package/release/src/plugin_datetime.js +0 -2
- package/release/src/plugin_datetime.js.map +0 -7
- package/release/src/plugin_kansuji.js +0 -2
- package/release/src/plugin_kansuji.js.map +0 -7
- package/release/src/plugin_keigo.js +0 -2
- package/release/src/plugin_keigo.js.map +0 -7
- package/release/src/plugin_markup.js +0 -64
- package/release/src/plugin_markup.js.map +0 -7
- package/release/src/plugin_three.js +0 -2
- package/release/src/plugin_three.js.map +0 -7
- package/release/src/plugin_turtle.js +0 -2
- package/release/src/plugin_turtle.js.map +0 -7
- package/release/src/plugin_webworker.js +0 -4
- package/release/src/plugin_webworker.js.map +0 -7
- package/release/src/plugin_weykturtle3d.js +0 -2
- package/release/src/plugin_weykturtle3d.js.map +0 -7
- package/release/src/wnako3.js +0 -482
- package/release/src/wnako3.js.map +0 -7
- package/release/src/wnako3webworker.js +0 -428
- package/release/src/wnako3webworker.js.map +0 -7
- package/release/stats.json +0 -1
- package/release/version.js.LICENSE.txt +0 -65
- package/release/version.js.map +0 -1
- package/release/wnako3.js.LICENSE.txt +0 -341
- package/release/wnako3webworker.js.LICENSE.txt +0 -209
- package/src/plugin_three.mts +0 -240
|
@@ -1,112 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* file: plugin_snako.js
|
|
3
|
-
* 簡単なファイル読み書きのプラグイン
|
|
4
|
-
*/
|
|
5
|
-
import fs from 'node:fs';
|
|
6
|
-
import { execSync } from 'node:child_process';
|
|
7
|
-
import path from 'node:path';
|
|
8
|
-
export default {
|
|
9
|
-
'meta': {
|
|
10
|
-
type: 'const',
|
|
11
|
-
value: {
|
|
12
|
-
pluginName: 'plugin_snako', // プラグインの名前
|
|
13
|
-
description: '最小の機能を提供するプラグイン', // プラグインの説明
|
|
14
|
-
pluginVersion: '3.6.3', // プラグインのバージョン
|
|
15
|
-
nakoRuntime: ['cnako'], // 対象ランタイム
|
|
16
|
-
nakoVersion: '3.6.3' // 要求なでしこバージョン
|
|
17
|
-
}
|
|
18
|
-
},
|
|
19
|
-
'初期化': {
|
|
20
|
-
type: 'func',
|
|
21
|
-
josi: [],
|
|
22
|
-
pure: true,
|
|
23
|
-
fn: function (sys) {
|
|
24
|
-
sys.__getBokanPath = () => {
|
|
25
|
-
let nakofile;
|
|
26
|
-
const cmd = path.basename(process.argv[1]);
|
|
27
|
-
if (cmd.indexOf('snako') < 0) {
|
|
28
|
-
nakofile = process.argv[1];
|
|
29
|
-
}
|
|
30
|
-
else {
|
|
31
|
-
nakofile = process.argv[2];
|
|
32
|
-
}
|
|
33
|
-
return path.dirname(path.resolve(nakofile));
|
|
34
|
-
};
|
|
35
|
-
sys.__setSysVar('コマンドライン', process.argv);
|
|
36
|
-
sys.__setSysVar('ナデシコランタイムパス', process.argv[0]);
|
|
37
|
-
sys.__setSysVar('ナデシコランタイム', path.basename(process.argv[0]));
|
|
38
|
-
sys.__setSysVar('母艦パス', sys.__getBokanPath());
|
|
39
|
-
}
|
|
40
|
-
},
|
|
41
|
-
// @SNAKO
|
|
42
|
-
'コマンドライン': { type: 'const', value: '' },
|
|
43
|
-
'ナデシコランタイムパス': { type: 'const', value: '' },
|
|
44
|
-
'ナデシコランタイム': { type: 'const', value: '' },
|
|
45
|
-
'母艦パス': { type: 'const', value: '' },
|
|
46
|
-
'読': {
|
|
47
|
-
type: 'func',
|
|
48
|
-
josi: [['を', 'から']],
|
|
49
|
-
pure: true,
|
|
50
|
-
fn: function (f) {
|
|
51
|
-
return '' + fs.readFileSync(f);
|
|
52
|
-
}
|
|
53
|
-
},
|
|
54
|
-
'開': {
|
|
55
|
-
type: 'func',
|
|
56
|
-
josi: [['を', 'から']],
|
|
57
|
-
pure: true,
|
|
58
|
-
fn: function (f) {
|
|
59
|
-
return '' + fs.readFileSync(f);
|
|
60
|
-
}
|
|
61
|
-
},
|
|
62
|
-
'保存': {
|
|
63
|
-
type: 'func',
|
|
64
|
-
josi: [['を'], ['に', 'へ']],
|
|
65
|
-
pure: true,
|
|
66
|
-
fn: function (s, f) {
|
|
67
|
-
fs.writeFileSync(f, s, 'utf-8');
|
|
68
|
-
},
|
|
69
|
-
return_none: true
|
|
70
|
-
},
|
|
71
|
-
'起動待機': {
|
|
72
|
-
type: 'func',
|
|
73
|
-
josi: [['を']],
|
|
74
|
-
pure: true,
|
|
75
|
-
fn: function (s) {
|
|
76
|
-
const r = execSync(s);
|
|
77
|
-
return r.toString();
|
|
78
|
-
}
|
|
79
|
-
},
|
|
80
|
-
'ファイル名抽出': {
|
|
81
|
-
type: 'func',
|
|
82
|
-
josi: [['から', 'の']],
|
|
83
|
-
pure: true,
|
|
84
|
-
fn: function (s) {
|
|
85
|
-
return path.basename(s);
|
|
86
|
-
}
|
|
87
|
-
},
|
|
88
|
-
'パス抽出': {
|
|
89
|
-
type: 'func',
|
|
90
|
-
josi: [['から', 'の']],
|
|
91
|
-
pure: true,
|
|
92
|
-
fn: function (s) {
|
|
93
|
-
return path.dirname(s);
|
|
94
|
-
}
|
|
95
|
-
},
|
|
96
|
-
'絶対パス変換': {
|
|
97
|
-
type: 'func',
|
|
98
|
-
josi: [['を', 'の']],
|
|
99
|
-
pure: true,
|
|
100
|
-
fn: function (a) {
|
|
101
|
-
return path.resolve(a);
|
|
102
|
-
}
|
|
103
|
-
},
|
|
104
|
-
'相対パス展開': {
|
|
105
|
-
type: 'func',
|
|
106
|
-
josi: [['を'], ['で']],
|
|
107
|
-
pure: true,
|
|
108
|
-
fn: function (a, b) {
|
|
109
|
-
return path.resolve(path.join(a, b));
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
};
|
package/core/command/snako.mjs
DELETED
|
@@ -1,108 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node --no-warnings=ExperimentalWarning --loader ts-node/esm
|
|
2
|
-
import fs from 'node:fs';
|
|
3
|
-
import path from 'node:path';
|
|
4
|
-
import com from '../index.mjs';
|
|
5
|
-
import { argv as nodejs_argv } from 'node:process';
|
|
6
|
-
import * as url from 'node:url';
|
|
7
|
-
import { NakoGenOptions } from '../src/nako_gen.mjs';
|
|
8
|
-
import PluginSnako from './plugin_snako.mjs';
|
|
9
|
-
const __dirname = url.fileURLToPath(new URL('.', import.meta.url));
|
|
10
|
-
/** コマンドラインオプション */
|
|
11
|
-
class CommandOptions {
|
|
12
|
-
constructor() {
|
|
13
|
-
this.nodePath = '';
|
|
14
|
-
this.scriptPath = '';
|
|
15
|
-
this.filename = '';
|
|
16
|
-
this.evalStr = '';
|
|
17
|
-
this.isDebug = false;
|
|
18
|
-
this.flagConvert = false;
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
/** メイン処理 */
|
|
22
|
-
async function main(argvOrg) {
|
|
23
|
-
// コマンドラインオプションを確認
|
|
24
|
-
const argv = [...argvOrg];
|
|
25
|
-
const opt = new CommandOptions();
|
|
26
|
-
opt.nodePath = argv.shift() || '';
|
|
27
|
-
opt.scriptPath = argv.shift() || '';
|
|
28
|
-
while (argv.length > 0) {
|
|
29
|
-
const arg = argv.shift() || '';
|
|
30
|
-
if (arg === '-d' || arg === '--debug') {
|
|
31
|
-
opt.isDebug = true;
|
|
32
|
-
continue;
|
|
33
|
-
}
|
|
34
|
-
if (arg === '-e' || arg === '--eval') {
|
|
35
|
-
opt.evalStr = argv.shift() || '';
|
|
36
|
-
continue;
|
|
37
|
-
}
|
|
38
|
-
if (arg === '-c' || arg === '--convert') {
|
|
39
|
-
opt.flagConvert = true;
|
|
40
|
-
continue;
|
|
41
|
-
}
|
|
42
|
-
if (opt.filename === '') {
|
|
43
|
-
opt.filename = arg;
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
// なでしこのコンパイラを生成
|
|
47
|
-
const nako = new com.NakoCompiler();
|
|
48
|
-
nako.addPluginObject('PluginSnako', PluginSnako);
|
|
49
|
-
// 実行前にイベントを挟みたいとき
|
|
50
|
-
nako.addListener('beforeRun', (g) => {
|
|
51
|
-
g.__varslist[0].set('ナデシコ種類', 'snako');
|
|
52
|
-
});
|
|
53
|
-
// logger を設定 --- リスナーを登録することでデバッグレベルを指定
|
|
54
|
-
const logger = nako.getLogger();
|
|
55
|
-
if (opt.isDebug) {
|
|
56
|
-
logger.addListener('trace', (data) => {
|
|
57
|
-
console.log(data.nodeConsole);
|
|
58
|
-
});
|
|
59
|
-
}
|
|
60
|
-
logger.addListener('stdout', (data) => {
|
|
61
|
-
console.log(data.noColor);
|
|
62
|
-
});
|
|
63
|
-
// -e オプションを実行したとき
|
|
64
|
-
if (opt.evalStr) {
|
|
65
|
-
await nako.runAsync(opt.evalStr, 'main.nako3');
|
|
66
|
-
return;
|
|
67
|
-
}
|
|
68
|
-
// パラメータが空だったとき
|
|
69
|
-
if (opt.filename === '') {
|
|
70
|
-
showHelp();
|
|
71
|
-
return;
|
|
72
|
-
}
|
|
73
|
-
// ソースコードをファイルから読み込む
|
|
74
|
-
const code = fs.readFileSync(opt.filename, 'utf-8');
|
|
75
|
-
// -c オプションが指定されたとき
|
|
76
|
-
if (opt.flagConvert) {
|
|
77
|
-
convert(nako, code, opt);
|
|
78
|
-
}
|
|
79
|
-
// 実行
|
|
80
|
-
await nako.runAsync(code, opt.filename);
|
|
81
|
-
}
|
|
82
|
-
// -c オプションを指定したとき
|
|
83
|
-
function convert(nako, code, opt) {
|
|
84
|
-
// オプションを指定
|
|
85
|
-
const genOpt = new NakoGenOptions(false, ['nako_errors.mjs', 'nako_core_version.mjs', 'plugin_system.mjs'], '__self.__varslist[0].set(\'ナデシコ種類\', \'snako\')');
|
|
86
|
-
// スタンドアロンコードを生成
|
|
87
|
-
const js = nako.compileStandalone(code, opt.filename, genOpt);
|
|
88
|
-
const jsFilename = opt.filename + '.js';
|
|
89
|
-
fs.writeFileSync(jsFilename, js, { encoding: 'utf-8' });
|
|
90
|
-
// 必要なライブラリをコピー
|
|
91
|
-
const runtimeDir = path.join(path.dirname(jsFilename), 'nako3runtime');
|
|
92
|
-
const srcDir = path.join(__dirname, '..', 'src');
|
|
93
|
-
if (!fs.existsSync(runtimeDir)) {
|
|
94
|
-
fs.mkdirSync(runtimeDir);
|
|
95
|
-
}
|
|
96
|
-
for (const f of genOpt.importFiles) {
|
|
97
|
-
fs.copyFileSync(path.join(srcDir, f), path.join(runtimeDir, f));
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
/** 使い方を表示 */
|
|
101
|
-
function showHelp() {
|
|
102
|
-
console.log('●なでしこ(簡易版) # v.' + com.version.version);
|
|
103
|
-
console.log('[使い方] node snako.mjs [--debug|-d] (filename)');
|
|
104
|
-
console.log('[使い方] node snako.mjs [--eval|-e] (source)');
|
|
105
|
-
console.log('[使い方] node snako.mjs [-c] (source) ... convert');
|
|
106
|
-
}
|
|
107
|
-
/** メイン処理を実行 */
|
|
108
|
-
main(nodejs_argv);
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
/*! For license information please see core_src_nako_josi_list_mjs.js.LICENSE.txt */
|
|
2
|
-
"use strict";(self.webpackChunknadesiko3=self.webpackChunknadesiko3||[]).push([["core_src_nako_josi_list_mjs"],{"./core/src/nako_josi_list.mjs":function(n,o,s){s.r(o),s.d(o,{josiList:function(){return t},josiRE:function(){return f},removeJosiList:function(){return e},removeJosiMap:function(){return c},tararebaJosiList:function(){return r},tararebaMap:function(){return i}});const t=["について","くらい","なのか","までを","までの","による","とは","から","まで","だけ","より","ほど","など","いて","えて","きて","けて","して","って","にて","みて","めて","ねて","では","には","は~","んで","ずつ","は","を","に","へ","で","と","が","の"],r=["でなければ","なければ","ならば","なら","たら","れば"],e=["こと","である","です","します","でした"],i={};r.forEach((n=>{t.push(n),i[n]=!0}));const c={};e.forEach((n=>{t.push(n),c[n]=!0}));const u=[];for(const n of t)u.push("もの"+n),u.push(n);u.sort(((n,o)=>o.length-n.length));const a="^[\\t ]*("+u.join("|")+")",f=new RegExp(a)}}]);
|
|
3
|
-
//# sourceMappingURL=core_src_nako_josi_list_mjs.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"core_src_nako_josi_list_mjs.js","mappings":";wXAGO,MAAMA,EAAW,CACpB,OAAQ,MAAO,MAAO,MAAO,MAAO,MACpC,KAAM,KAAM,KAAM,KAAM,KAAM,KAAM,KACpC,KAAM,KAAM,KAAM,KAAM,KAAM,KAAM,KAAM,KAC1C,KAAM,KAAM,KAAM,KAAM,KAAM,KAAM,KACpC,IAAK,IAAK,IAAK,IAAK,IAAK,IAAK,IAAK,KAG1BC,EAAmB,CAC5B,QAAS,OAAQ,MAAO,KAAM,KAAM,MAG3BC,EAAiB,CAC1B,KAAM,MAAO,KAAM,MAAO,OAKjBC,EAAc,CAAC,EAC5BF,EAAiBG,SAAQC,IACrBL,EAASM,KAAKD,GACdF,EAAYE,IAAQ,CAAI,IAKrB,MAAME,EAAgB,CAAC,EAC9BL,EAAeE,SAAQC,IACnBL,EAASM,KAAKD,GACdE,EAAcF,IAAQ,CAAI,IAG9B,MAAMG,EAAe,GACrB,IAAK,MAAMC,KAAMT,EACbQ,EAAaF,KAAK,KAAOG,GACzBD,EAAaF,KAAKG,GAGtBD,EAAaE,MAAK,CAACC,EAAGC,IAAMA,EAAEC,OAASF,EAAEE,SAEzC,MAAMC,EAAM,YAAcN,EAAaO,KAAK,KAAO,IACtCC,EAAS,IAAIC,OAAOH","sources":["webpack://nadesiko3/./core/src/nako_josi_list.mjs"],"sourcesContent":["/**\n * 助詞の一覧\n */\nexport const josiList = [\n 'について', 'くらい', 'なのか', 'までを', 'までの', 'による',\n 'とは', 'から', 'まで', 'だけ', 'より', 'ほど', 'など',\n 'いて', 'えて', 'きて', 'けて', 'して', 'って', 'にて', 'みて',\n 'めて', 'ねて', 'では', 'には', 'は~', 'んで', 'ずつ',\n 'は', 'を', 'に', 'へ', 'で', 'と', 'が', 'の'\n];\n// 「もし」文で使う助詞\nexport const tararebaJosiList = [\n 'でなければ', 'なければ', 'ならば', 'なら', 'たら', 'れば'\n];\n// 意味のない助詞(削除する) #936 #939 #974\nexport const removeJosiList = [\n 'こと', 'である', 'です', 'します', 'でした'\n];\n/**\n * 「もし」文で使う「たら」「れば」などの一覧をプログラムで扱いやすいようマップに変換したもの\n */\nexport const tararebaMap = {};\ntararebaJosiList.forEach(josi => {\n josiList.push(josi);\n tararebaMap[josi] = true;\n});\n/**\n * 意味のない助詞(削除する)をマップに変換したもの\n */\nexport const removeJosiMap = {};\nremoveJosiList.forEach(josi => {\n josiList.push(josi);\n removeJosiMap[josi] = true;\n});\n// 「もの」構文 (#1614)\nconst josiListMono = [];\nfor (const jo of josiList) {\n josiListMono.push('もの' + jo);\n josiListMono.push(jo);\n}\n// 文字数の長い順に並び替え\njosiListMono.sort((a, b) => b.length - a.length);\n// 正規表現で助詞をマッチできるようにする\nconst pat = '^[\\\\t ]*(' + josiListMono.join('|') + ')';\nexport const josiRE = new RegExp(pat);\n"],"names":["josiList","tararebaJosiList","removeJosiList","tararebaMap","forEach","josi","push","removeJosiMap","josiListMono","jo","sort","a","b","length","pat","join","josiRE","RegExp"],"sourceRoot":""}
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
/*! For license information please see core_src_nako_reserved_words_mjs.js.LICENSE.txt */
|
|
2
|
-
"use strict";(self.webpackChunknadesiko3=self.webpackChunknadesiko3||[]).push([["core_src_nako_reserved_words_mjs"],{"./core/src/nako_reserved_words.mjs":function(e,s,r){r.r(s);s.default={"回":"回","回繰返":"回","間":"間","間繰返":"間","繰返":"繰返","増繰返":"増繰返","減繰返":"減繰返","後判定":"後判定","反復":"反復","抜":"抜ける","続":"続ける","戻":"戻る","先":"先に","次":"次に","代入":"代入","実行速度優先":"実行速度優先","パフォーマンスモニタ適用":"パフォーマンスモニタ適用","定":"定める","逐次実行":"逐次実行","条件分岐":"条件分岐","増":"増","減":"減","変数":"変数","定数":"定数","エラー監視":"エラー監視","エラー":"エラー","それ":"word","そう":"word","関数":"def_func","インデント構文":"インデント構文","非同期モード":"非同期モード","DNCLモード":"DNCLモード","モード設定":"モード設定","取込":"取込","モジュール公開既定値":"モジュール公開既定値"}}}]);
|
|
3
|
-
//# sourceMappingURL=core_src_nako_reserved_words_mjs.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"core_src_nako_reserved_words_mjs.js","mappings":";iLAsCA,UArCiB,CACb,IAAK,IACL,MAAO,IACP,IAAK,IACL,MAAO,IACP,KAAM,KACN,MAAO,MACP,MAAO,MACP,MAAO,MACP,KAAM,KACN,IAAK,MACL,IAAK,MACL,IAAK,KACL,IAAK,KACL,IAAK,KACL,KAAM,KACN,SAAU,SACV,eAAgB,eAChB,IAAK,MACL,OAAQ,OACR,OAAQ,OACR,IAAK,IACL,IAAK,IACL,KAAM,KACN,KAAM,KACN,QAAS,QACT,MAAO,MACP,KAAM,OACN,KAAM,OACN,KAAM,WACN,UAAW,UACX,SAAU,SACV,UAAW,UACX,QAAS,QACT,KAAM,KACN,aAAc","sources":["webpack://nadesiko3/./core/src/nako_reserved_words.mjs"],"sourcesContent":["/** 予約語 */\nconst reserved = {\n '回': '回',\n '回繰返': '回',\n '間': '間',\n '間繰返': '間',\n '繰返': '繰返',\n '増繰返': '増繰返',\n '減繰返': '減繰返',\n '後判定': '後判定',\n '反復': '反復',\n '抜': '抜ける',\n '続': '続ける',\n '戻': '戻る',\n '先': '先に',\n '次': '次に',\n '代入': '代入',\n '実行速度優先': '実行速度優先',\n 'パフォーマンスモニタ適用': 'パフォーマンスモニタ適用',\n '定': '定める',\n '逐次実行': '逐次実行',\n '条件分岐': '条件分岐',\n '増': '増',\n '減': '減',\n '変数': '変数',\n '定数': '定数',\n 'エラー監視': 'エラー監視',\n 'エラー': 'エラー',\n 'それ': 'word',\n 'そう': 'word',\n '関数': 'def_func',\n 'インデント構文': 'インデント構文',\n '非同期モード': '非同期モード',\n 'DNCLモード': 'DNCLモード',\n 'モード設定': 'モード設定',\n '取込': '取込',\n 'モジュール公開既定値': 'モジュール公開既定値'\n};\nexport default reserved;\n"],"names":[],"sourceRoot":""}
|