diff --git a/sample/sample01.bas b/sample/sample01.bas index 5d29428..9cefd8d 100755 --- a/sample/sample01.bas +++ b/sample/sample01.bas @@ -4,4 +4,4 @@ s$ = "hello " s$ = s$ + "world" -print s$ + "!" \ No newline at end of file +print s$ + "!" diff --git a/sample/sample02.bas b/sample/sample02.bas index f4723f5..fd65963 100755 --- a/sample/sample02.bas +++ b/sample/sample02.bas @@ -14,4 +14,4 @@ for n = 3 to e if isp = 0 then exit wend if isp = 1 then print n, ", " -next n \ No newline at end of file +next n diff --git a/sample/sample03.bas b/sample/sample03.bas index c91d797..4654718 100755 --- a/sample/sample03.bas +++ b/sample/sample03.bas @@ -19,4 +19,4 @@ for y = 5 to x step 2 next a = a * 4 -print "Pi = ", a \ No newline at end of file +print "Pi = ", a diff --git a/sample/sample04.bas b/sample/sample04.bas index 2c2a068..2cb6654 100755 --- a/sample/sample04.bas +++ b/sample/sample04.bas @@ -20,4 +20,4 @@ show: for i = 0 to n - 1 print arr(i), ", " next -return \ No newline at end of file +return diff --git a/sample/sample05.bas b/sample/sample05.bas index bf35a74..e260a52 100755 --- a/sample/sample05.bas +++ b/sample/sample05.bas @@ -12,4 +12,4 @@ enddef a = 3 b = 4 -print a; b; area(a, b); \ No newline at end of file +print a; b; area(a, b); diff --git a/sample/sample06.bas b/sample/sample06.bas index f900a02..10eb9dd 100644 --- a/sample/sample06.bas +++ b/sample/sample06.bas @@ -3,25 +3,25 @@ ' For more information, see https://github.com/paladin-t/my_basic/ class animal - def speak(a) - print "default" + a; - enddef + def speak(a) + print "default" + a; + enddef endclass class cat(animal) - def speak(a) - print "meow" + a; - enddef + def speak(a) + print "meow" + a; + enddef endclass class dog(animal) - def speak(a) - print "bark" + a; - enddef + def speak(a) + print "bark" + a; + enddef endclass c = new(cat) d = new(dog) c.speak("!") -d.speak("!") \ No newline at end of file +d.speak("!")