-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathshell.py
More file actions
28 lines (21 loc) · 1.29 KB
/
Copy pathshell.py
File metadata and controls
28 lines (21 loc) · 1.29 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#########################################################################
# SAHIL PROGRAMMING LANGUAGE #
# author : Abdulbasit Rubeiyya #
#########################################################################
#########################################################################
# IMPORTS #
#########################################################################
import sahil
from colorama import Fore, Back, Style
#########################################################################
# MAIN #
#########################################################################
while True:
text = input(Fore.GREEN + 'sahil > ' + Style.RESET_ALL) #output on terminal
result, error = sahil.run('--', text) #1
if error: print(error.as_string())
elif result: print(result)
#########################################################################
# COMMENTS #
#########################################################################
# 1- we do not pass the filename(fn) because this is repl