Changeset 28581
- Timestamp:
- 01/18/09 09:55:29 (4 years ago)
- Location:
- lang/javascript/hsp-on-js/trunk
- Files:
-
- 2 added
- 3 modified
-
README (modified) (1 diff)
-
src/compiler.js (modified) (1 diff)
-
test/test_foreach.hsp (added)
-
test/test_gosub.hsp (added)
-
test/test_variable_comb.hsp (modified) (1 diff, 1 prop)
Legend:
- Unmodified
- Added
- Removed
-
lang/javascript/hsp-on-js/trunk/README
r28394 r28581 18 18 19 19 = テストの実行の仕方 = 20 test ディレクトリ内は HSP on JS 用の回帰テストです。 20 21 パッケージを作り(デフォルトの ./hsp-on-js-core.js に出力)、test/runner.rb を実行します。 21 22 引数に指定されたファイルでテストします。 -
lang/javascript/hsp-on-js/trunk/src/compiler.js
r28327 r28581 193 193 this.tokensPos ++; 194 194 var paramInfos = this.compileParameters(sequence); 195 if(paramInfos != 1) throw this.error('gosub の引数の数が違います', token);195 if(paramInfos.length != 1) throw this.error('gosub の引数の数が違います', token); 196 196 this.pushNewInsn(sequence, Instruction.Code.GOSUB_EXPR, [paramInfos[0]], token); 197 197 } -
lang/javascript/hsp-on-js/trunk/test/test_variable_comb.hsp
- Property svn:mime-type set to text/plain; charset=Shift_JIS
r28392 r28581 1 ; �X�^�b�N������� 2 ; - �Y�����w���� 3 ; - �ꎟ���̓Y�����w�肠��; - ���̓Y�����w�肠��; 4 ; - var �G�C���A�X 5 ; - ���ڂ̐ÓI�ϐ� 1 ; スタックを使う式で 2 ; - 添え字指定なし 3 ; - 一次元の添え字指定あり 4 ; - 二次元の添え字指定あり 6 5 ; 7 ; - �� 8 ; - �A���� 9 ; - ������ 10 ; - �����Z�̕����� 11 ; - �C���N�������g 12 ; - �f�N�������g 6 ; - var エイリアス 7 ; - 直接の静的変数 13 8 ; 14 ; �̑g�ݍ��킹��X�g 9 ; - 代入 10 ; - 連続代入 11 ; - 複合代入 12 ; - 比較演算の複合代入 13 ; - インクリメント 14 ; - デクリメント 15 ; 16 ; の組み合わせをテスト 15 17 16 18 #module
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)