phase: 20.49 COMPLETE; 20.50 Flow+String minimal reps; 20.51 selfhost v0/v1 minimal (Option A/B); hv1-inline binop/unop/copy; docs + run_all + CURRENT_TASK -> 21.0
This commit is contained in:
@ -19,11 +19,11 @@ cd nyash/nyash-rust
|
||||
cargo build
|
||||
|
||||
# 実行
|
||||
./target/debug/nyash your_program.nyash
|
||||
./target/debug/nyash your_program.hako
|
||||
```
|
||||
|
||||
### **2. はじめてのNyashプログラム**
|
||||
`hello.nyash`を作成:
|
||||
`hello.hako`を作成:
|
||||
```nyash
|
||||
print("Hello, Nyash World!")
|
||||
print("Everything is Box! 🎉")
|
||||
@ -31,7 +31,7 @@ print("Everything is Box! 🎉")
|
||||
|
||||
実行:
|
||||
```bash
|
||||
./target/debug/nyash hello.nyash
|
||||
./target/debug/nyash hello.hako
|
||||
```
|
||||
|
||||
出力:
|
||||
@ -408,24 +408,24 @@ debuggingDemo()
|
||||
### **プロジェクト構造**
|
||||
```
|
||||
my_nyash_project/
|
||||
├── main.nyash # メインプログラム
|
||||
├── main.hako # メインプログラム
|
||||
├── utils/
|
||||
│ ├── math.nyash # 数学ユーティリティ
|
||||
│ ├── string.nyash # 文字列ユーティリティ
|
||||
│ └── debug.nyash # デバッグ関数
|
||||
│ ├── math.hako # 数学ユーティリティ
|
||||
│ ├── string.hako # 文字列ユーティリティ
|
||||
│ └── debug.hako # デバッグ関数
|
||||
└── models/
|
||||
├── person.nyash # Personクラス
|
||||
└── calculator.nyash # Calculatorクラス
|
||||
├── person.hako # Personクラス
|
||||
└── calculator.hako # Calculatorクラス
|
||||
```
|
||||
|
||||
### **main.nyash**
|
||||
### **main.hako**
|
||||
```nyash
|
||||
# 📦 Module System Example
|
||||
|
||||
include "utils/math.nyash"
|
||||
include "utils/string.nyash"
|
||||
include "models/person.nyash"
|
||||
include "models/calculator.nyash"
|
||||
include "utils/math.hako"
|
||||
include "utils/string.hako"
|
||||
include "models/person.hako"
|
||||
include "models/calculator.hako"
|
||||
|
||||
function main() {
|
||||
print("🚀 Multi-module Nyash Application")
|
||||
@ -509,7 +509,7 @@ loop(i < 1000) {
|
||||
|
||||
### **学習順序**
|
||||
1. ✅ **基本構文** - このガイドで完了
|
||||
2. **並行処理** - `test_async_*.nyash`を参考に
|
||||
2. **並行処理** - `test_async_*.hako`を参考に
|
||||
3. **Static Box応用** - ユーティリティクラス作成
|
||||
4. **デバッグ技法** - DebugBox完全活用
|
||||
5. **アプリケーション開発** - 実践的なプロジェクト
|
||||
@ -517,10 +517,10 @@ loop(i < 1000) {
|
||||
### **サンプルプログラム**
|
||||
```bash
|
||||
# 実装済みサンプル
|
||||
./target/debug/nyash test_local_init.nyash # 初期化付き変数
|
||||
./target/debug/nyash app_dice_rpg.nyash # RPGバトルゲーム
|
||||
./target/debug/nyash app_statistics.nyash # 統計計算
|
||||
./target/debug/nyash test_async_parallel.nyash # 並行処理
|
||||
./target/debug/nyash test_local_init.hako # 初期化付き変数
|
||||
./target/debug/nyash app_dice_rpg.hako # RPGバトルゲーム
|
||||
./target/debug/nyash app_statistics.hako # 統計計算
|
||||
./target/debug/nyash test_async_parallel.hako # 並行処理
|
||||
```
|
||||
|
||||
### **リファレンス**
|
||||
|
||||
Reference in New Issue
Block a user