@@ -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