• R/O
  • HTTP
  • SSH
  • HTTPS

提交

標籤
無標籤

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

BASIC compiler/interpreter for PIC32MX/MZ-80K


Commit MetaInfo

修訂427dfe0e2b56363012af502231e89f44c7f814ef (tree)
時間2019-02-16 04:31:39
作者Katsumi <kmorimatsu@sour...>
CommiterKatsumi

Log Message

Recursive static vars test code.

Change Summary

差異

--- a/mips/megalopa/debug.c
+++ b/mips/megalopa/debug.c
@@ -229,31 +229,34 @@ static const char initext[]=
229229
230230
231231 static const char bastext[]=
232-"USECLASS CLASS1\n"
232+"USECLASS CLASS1,CLASS2\n"
233233 "CLS\n"
234-"a=new(CLASS1)"
235-"print a.T1()\n"
236-"\n"
234+"CLASS1::T1=123\n"
235+"CLASS2::T2=456\n"
236+"print CLASS1::T3(),\n"
237+"print CLASS2::T4(),\n"
238+"print CLASS1::T5(),\n"
239+"print CLASS2::T6(),\n"
237240 "\n"
238241 "\n";
239242
240243 static const char class1text[]=
244+"STATIC T1\n"
241245 "useclass CLASS2\n"
242-"field private T2\n"
243-"method INIT\n"
244-" T2=new(CLASS2)\n"
245-" return\n"
246-"METHOD T1\n"
247-" return T2.T1()\n"
248246 "method T3\n"
249-" return 456\n"
247+" return CLASS2::T2\n"
248+"method T5\n"
249+" return T1\n"
250250 "\n"
251251 "\n";
252252
253253 static const char class2text[]=
254+"STATIC T2\n"
254255 "useclass CLASS1\n"
255-"method T1\n"
256-" return CLASS1::T3()\n"
256+"method T4\n"
257+" return CLASS1::T1\n"
258+"method T6\n"
259+" return T2\n"
257260 "\n"
258261 "\n"
259262 "\n"