Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
57 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,10 @@ | ||
#!/bin/bash | ||
ROOT_DIR=$(cd $(dirname $0); cd ..; pwd) | ||
ROOT_DIR=$( | ||
cd $(dirname $0) | ||
cd .. | ||
pwd | ||
) | ||
SRC_DIR=$ROOT_DIR/src | ||
NAKO_JS=$SRC_DIR/cnako3.js | ||
|
||
/usr/bin/env node $NAKO_JS $* | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,39 @@ | ||
# なでしこを構成するファイルたち | ||
|
||
### src/nako3.js | ||
## src/nako3.js | ||
|
||
なでしこコンパイラ本体。なでしこのソースコードをJSに変換する。変換処理は、以下のように行われる。 | ||
|
||
- なでしこソース | ||
- 構文木(中間表現) | ||
- JavaScriptソース | ||
- なでしこソース | ||
- 構文木(中間表現) | ||
- JavaScriptソース | ||
|
||
|
||
### src/nako_prepare.js | ||
## src/nako_prepare.js | ||
|
||
なでしこのソースコードの前置処理を行うもの。主に全角半角の変換処理を行う。 | ||
|
||
### src/nako_parser3.js | ||
## src/nako_parser3.js | ||
|
||
なでしこ構文から構文木を生成するもの。 | ||
|
||
### src/nako_gen.js | ||
## src/nako_gen.js | ||
|
||
構文木を元に、JavaScriptのコードを生成するもの。 | ||
|
||
### src/plugin_xxx.js | ||
## src/plugin_xxx.js | ||
|
||
なでしこの命令を定義したプラグイン。 | ||
|
||
|
||
### src/cnako3.js | ||
## src/cnako3.js | ||
|
||
バッチファイル実行用。コマンドラインのインタフェースを実装するモノ。 | ||
|
||
### src/wnako3.js | ||
## src/wnako3.js | ||
|
||
ブラウザ用。 | ||
|
||
### src/enako3.js | ||
## src/enako3.js | ||
|
||
Electronによるアプリ本体。 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,4 +15,3 @@ sudo npm install -g nadesiko3 | |
|
||
# 追加 | ||
sudo apt install -y p7zip-full xdotool | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters