*updated readme.

This commit is contained in:
Wang Renxin 2015-09-22 14:10:45 +08:00
parent 178485d138
commit f439c7828e

View File

@ -34,14 +34,16 @@ MY-BASIC is a lightweight cross-platform easy extendable BASIC interpreter writt
Come along with a traditional "hello world" script in MY-BASIC: Come along with a traditional "hello world" script in MY-BASIC:
print "What is your name: " ~~~~~~~~~~bas
input n$ print "What is your name: "
input n$
def foo(a, b) def foo(a, b)
return a + " " + b + " by " + n$ + "." return a + " " + b + " by " + n$ + "."
enddef enddef
print foo("Hello", "world"); print foo("Hello", "world");
~~~~~~~~~~
Read the [MY-BASIC Quick Reference](MY-BASIC%20Quick%20Reference.pdf) (especially the "**Programming with BASIC**" section) to get more details about how to program in MY-BASIC. Read the [MY-BASIC Quick Reference](MY-BASIC%20Quick%20Reference.pdf) (especially the "**Programming with BASIC**" section) to get more details about how to program in MY-BASIC.