*updated sample code.
This commit is contained in:
parent
eb2b097a4a
commit
015ebcd6a7
@ -2,8 +2,7 @@
|
||||
' Copyright (c) 2011 - 2016 Wang Renxin. All rights reserved.
|
||||
' For more information, see https://github.com/paladin-t/my_basic/
|
||||
|
||||
print "Input: "
|
||||
input ns$
|
||||
input "Input: ", ns$
|
||||
n = val(ns$)
|
||||
|
||||
x = n * 2 - 1
|
||||
|
@ -91,8 +91,7 @@ def brainfuck(cmd)
|
||||
enddef
|
||||
|
||||
' This is a brainfuck interpreter written with MY-BASIC
|
||||
print "Input: "
|
||||
input cmd$
|
||||
input "Input: ", cmd$
|
||||
' Use a sample code?
|
||||
if cmd$ = "hello" then
|
||||
cmd$ = "++++++++++[>+++++++>++++++++++>+++>+<<<<-]>++.>+.+++++++..+++.>++.<<+++++++++++++++.>.+++.------.--------.>+.>."
|
||||
|
Loading…
x
Reference in New Issue
Block a user