• R/O
  • SSH
  • HTTPS

Commit

Tags
No Tags

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 (suspended)


Commit MetaInfo

Revision141 (tree)
Time2016-07-24 16:40:51
Authorkmorimatsu

Log Message

1) Return code won't be required at the end of file. 2) Avoid double numbering in empty lines.

Change Summary

Incremental Difference

--- mips/branches/nauplia/file.c (revision 140)
+++ mips/branches/nauplia/file.c (revision 141)
@@ -54,8 +54,8 @@
5454 if (g_fbuff[i]==0x0a || g_fbuff[i]==0x0d) in_string=0;
5555 }
5656 }
57- // Null charcter at the end
58- g_source[size]=0x00;
57+ // Return code at the end
58+ g_source[size]=0x0d;
5959 // Compile last few lines.
6060 while(g_srcpos<size-1){
6161 err=compile_line();
--- mips/branches/zoea/compiler.c (revision 140)
+++ mips/branches/zoea/compiler.c (revision 141)
@@ -105,6 +105,7 @@
105105 if (b1<0x20) {
106106 // The end of line.
107107 // Don't add $s6-setting command.
108+ if (g_source[g_srcpos]==0x0D && g_source[g_srcpos+1]==0x0A) g_srcpos++;
108109 g_srcpos++;
109110 return 0;
110111 } else if ('0'<=b1 && b1<='9') {
--- mips/branches/zoea/file.c (revision 140)
+++ mips/branches/zoea/file.c (revision 141)
@@ -80,8 +80,8 @@
8080 // Maintain at least 256 characters in cache.
8181 if (256<=g_srcpos) read_file(256);
8282 }
83- // Null charcter at the end
84- g_source[g_size]=0x00;
83+ // Return code at the end
84+ g_source[g_size]=0x0d;
8585 // Compile last few lines.
8686 while(g_srcpos<g_size-1){
8787 err=compile_line();
--- mips/branches/zoea/debug.c (revision 140)
+++ mips/branches/zoea/debug.c (revision 141)
@@ -138,9 +138,10 @@
138138
139139
140140 static const char bastext[]=
141-"CLS\n"
142-"for i=1 to 9:print rnd(),:next\n"
143-"\n";
141+"CLS\r\n"
142+"\r\n"
143+"DATA 100";
144+//"\r\n";
144145
145146 /*
146147 Test function for constructing assemblies from C codes.