X Tutup
Skip to content

Commit 06f7ac7

Browse files
committed
صفائ
1 parent 0dde6bc commit 06f7ac7

File tree

2 files changed

+14
-6
lines changed

2 files changed

+14
-6
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Write simple Python in Urdu.
99
## How to Install
1010
1. Download this repo as a ZIP, or clone it via Git.
1111
2. Open the repo's folder in your Terminal.
12-
3. Run ```pip install requirements.txt```
12+
3. Run ```pip install -r requirements.txt```
1313

1414
## How to Use
1515
1. Create a new file in a folder.

src/lex.py

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,9 @@ def t_ID(t):
241241

242242
t.type = reserved.get(t.value,'ID') # Check for reserved words
243243

244-
print ("looking for error:", t.type, ", ", t.value)
244+
# ------------- Debugging ---------------
245+
# print ("looking for error:", t.type, ", ", t.value)
246+
# ------------- Debugging ---------------
245247

246248
# ------------- Debugging ---------------
247249
# print ("Type is:", t.type)
@@ -273,7 +275,7 @@ def t_ID(t):
273275
# Error handling rule
274276
def t_error(t):
275277
# ------------- Debugging ---------------
276-
print("Illegal character '%s'" % t.value[0])
278+
# print("Illegal character '%s'" % t.value[0])
277279
# ------------- Debugging ---------------
278280

279281
if args["reverse"] is False:
@@ -338,16 +340,22 @@ def t_COMMENT(t):
338340
"،": ",",
339341
}
340342

341-
print ("normal:", dots_and_stuff)
343+
# ------------- Debugging ---------------
344+
# print ("normal:", dots_and_stuff)
345+
# ------------- Debugging ---------------
342346

343347
if args["reverse"]:
344348
dots_and_stuff = {value:key for key, value in dots_and_stuff.items()}
345-
print ("Reversed:", dots_and_stuff)
349+
# ------------- Debugging ---------------
350+
# print ("Reversed:", dots_and_stuff)
351+
# ------------- Debugging ---------------
346352

347353
for key, value in dots_and_stuff.items():
348354
code = code.replace(key, value)
349355

350-
print ("Code is,\n", code)
356+
# ------------- Debugging ---------------
357+
# print ("Code is,\n", code)
358+
# ------------- Debugging ---------------
351359

352360
lexer.input(code)
353361

0 commit comments

Comments
 (0)
X Tutup