-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* execute file * docs * ignore main.ais * fix doc * changelog
- Loading branch information
Showing
6 changed files
with
45 additions
and
5 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 |
---|---|---|
|
@@ -7,6 +7,6 @@ | |
/src/parser/parser.js | ||
/src/parser/parser.mjs | ||
npm-debug.log | ||
test.is | ||
main.ais | ||
pnpm-lock.yaml | ||
tsdoc-metadata.json |
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 |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# 実行方法 | ||
## 1. Playgroundから実行 | ||
自分でホストする場合は、以下のコマンドを実行し表示されたリンクをブラウザで開きます。 | ||
``` | ||
cd playground | ||
npm run build | ||
npm run serve | ||
``` | ||
|
||
PlaygroundはGitHubでもホストされています:\ | ||
https://aiscript-dev.github.io/aiscript/ | ||
|
||
## 2. スクリプトファイルから実行 | ||
ファイルの内容を解析して実行します。 | ||
|
||
プロジェクトルートに`main.ais`を作成し、以下の内容を記述しファイルに保存します。 | ||
``` | ||
<: "Hello world!" | ||
``` | ||
|
||
以下のコマンドを実行します。 | ||
``` | ||
$ npm run start | ||
``` | ||
|
||
## 3. スクリプトファイルを解析する (パーサーのデバッグ向け) | ||
ファイルの内容を解析してASTを表示することができます。 | ||
主にパーサーのデバッグ向けで、インタプリタの実装状況に関わらずASTの内容を表示することができます。 | ||
|
||
プロジェクトルートに`main.ais`を作成し、以下の内容を記述しファイルに保存します。 | ||
``` | ||
<: "Hello world!" | ||
``` | ||
|
||
以下のコマンドを実行します。 | ||
``` | ||
$ npm run parse | ||
``` |
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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
- AiScriptのスクリプトファイルを表す拡張子が`.is`から`.ais`に変更されました。 | ||
- ファイル実行機能により読み取られるファイルの名前が`test.is`から`main.ais`へ変更されました。 |