Linux ip-148-66-134-25.ip.secureserver.net 3.10.0-1160.119.1.el7.tuxcare.els10.x86_64 #1 SMP Fri Oct 11 21:40:41 UTC 2024 x86_64
Apache
: 148.66.134.25 | : 3.145.78.117
66 Domain
8.0.30
amvm
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
BLACK DEFEND!
README
+ Create Folder
+ Create File
/
usr /
share /
doc /
python-ply-3.4 /
example /
BASIC /
[ HOME SHELL ]
Name
Size
Permission
Action
README
2.45
KB
-rw-r--r--
basic.py
1.5
KB
-rw-r--r--
basiclex.py
1.15
KB
-rw-r--r--
basiclog.py
1.65
KB
-rw-r--r--
basinterp.py
16.88
KB
-rw-r--r--
basparse.py
8.69
KB
-rw-r--r--
dim.bas
224
B
-rw-r--r--
func.bas
73
B
-rw-r--r--
gcd.bas
359
B
-rw-r--r--
gosub.bas
216
B
-rw-r--r--
hello.bas
57
B
-rw-r--r--
linear.bas
420
B
-rw-r--r--
maxsin.bas
217
B
-rw-r--r--
powers.bas
268
B
-rw-r--r--
rand.bas
60
B
-rw-r--r--
sales.bas
375
B
-rw-r--r--
sears.bas
481
B
-rw-r--r--
sqrt1.bas
78
B
-rw-r--r--
sqrt2.bas
56
B
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : basiclog.py
# An implementation of Dartmouth BASIC (1964) # import sys sys.path.insert(0,"../..") if sys.version_info[0] >= 3: raw_input = input import logging logging.basicConfig( level = logging.INFO, filename = "parselog.txt", filemode = "w" ) log = logging.getLogger() import basiclex import basparse import basinterp # If a filename has been specified, we try to run it. # If a runtime error occurs, we bail out and enter # interactive mode below if len(sys.argv) == 2: data = open(sys.argv[1]).read() prog = basparse.parse(data,debug=log) if not prog: raise SystemExit b = basinterp.BasicInterpreter(prog) try: b.run() raise SystemExit except RuntimeError: pass else: b = basinterp.BasicInterpreter({}) # Interactive mode. This incrementally adds/deletes statements # from the program stored in the BasicInterpreter object. In # addition, special commands 'NEW','LIST',and 'RUN' are added. # Specifying a line number with no code deletes that line from # the program. while 1: try: line = raw_input("[BASIC] ") except EOFError: raise SystemExit if not line: continue line += "\n" prog = basparse.parse(line,debug=log) if not prog: continue keys = list(prog) if keys[0] > 0: b.add_statements(prog) else: stat = prog[keys[0]] if stat[0] == 'RUN': try: b.run() except RuntimeError: pass elif stat[0] == 'LIST': b.list() elif stat[0] == 'BLANK': b.del_line(stat[1]) elif stat[0] == 'NEW': b.new()
Close