Skip to content

Instantly share code, notes, and snippets.

ee.zsy myzsyweb

Block or report user

Report or block myzsyweb

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@myzsyweb
myzsyweb / basic.sh
Created Jun 20, 2012
a simple interpreter for BASIC written in AWK
View basic.sh
#!/usr/bin/gawk -f
# a simple interpreter for GWBASIC(subset) written in AWK
# following 'The AWK Programming Language' Chapter 6
# @date June 20,2012
# @link basic.sh https://gist.github.com/2959816
# @link test.sh https://gist.github.com/2959877
# TODO:
# gosub/return...ok
# if/else/elseif/endif...ok
# while/wend...ok
View test.sh
a simple interpreter for BASIC written in AWK
see url https://gist.github.com/2959816
########## GWBASIC ###############
#!./basic2.sh
print "start"
s = 0:i = 0
loop:
s = s + i:i = i + 1
print "s" , s
You can’t perform that action at this time.