tests: add parser/vm bitops tests; docs: update cheatsheet and language guide for bitwise ops and shift; note Arrow(>>) removal
- Add src/tests/parser_bitops_test.rs and vm_bitops_test.rs - Update tokenizer unit test to expect SHIFT_RIGHT - Update quick-reference and language guide to document &,|,^,<<,>> and Arrow deprecation Known: one unrelated test failing (consolebox println TLV vs typebox) pre-existing.
This commit is contained in:
@ -53,6 +53,10 @@ a == b, a != b, a < b, a > b, a <= b, a >= b
|
||||
// 論理演算子
|
||||
not condition, a and b, a or b
|
||||
|
||||
// ビット演算子(整数限定)
|
||||
a & b, a | b, a ^ b
|
||||
a << n, a >> n # 注意: 旧来の >>(ARROW)は廃止。パイプラインは |>
|
||||
|
||||
// Cross-type演算 (Phase 1で完全実装)
|
||||
10 + 3.14 // → 13.14 (型変換)
|
||||
"Value: " + 42 // → "Value: 42" (文字列連結)
|
||||
@ -271,4 +275,4 @@ while condition { } // 使用不可
|
||||
📚 **関連ドキュメント:**
|
||||
- [Getting Started](GETTING_STARTED.md) - 環境構築・最初の一歩
|
||||
- [P2P Guide](P2P_GUIDE.md) - P2P通信システム完全ガイド
|
||||
- [Built-in Boxes](reference/builtin-boxes.md) - ビルトインBox詳細リファレンス
|
||||
- [Built-in Boxes](reference/builtin-boxes.md) - ビルトインBox詳細リファレンス
|
||||
|
||||
Reference in New Issue
Block a user