Expand description
Nadesiko Script v3
Nadesiko is one of Japanese programming languages. You can write the code using Japanese.
Example
use nadesiko3::*;
// 文字を表示
let result = eval_str("「こんにちは」と表示");
println!("{}", result);
// 計算して表示
let result = eval_str("1+2×3と表示");
println!("{}", result);
// 以下のように記述することもできます
let result = eval_str("1に2を足して表示");
println!("{}", result);
Build for Command line
% cargo build
% nadesiko3 eval "1+2*3を表示"
Modules
- 助詞一覧を定義したもの
- 全角から半角への変換関数群 ソースファイルの前処理に利用する
- 構文解析後のノードを定義
- 演算子の優先順位を定義
- 構文解析器
- 前置処理
- 予約語を定義したもの
- インタプリタ Node を順に実行する
- 文字列をカーソルで操作する
- なでしこの標準関数を定義したもの
- なでしこの関数を定義したもの(デバッグ用)
- トークンを定義したもの
- トークンの一覧をカーソルで操作するもの
- 軸解析器
Functions
- 引数codeに指定したプログラムを実行して結果を文字列で返します。