@@ -554,21 +554,23 @@ def locate_config(root: str) -> str | None:
554
554
print (f"Error { e } while parsing '{ args .config } ' settings file" )
555
555
556
556
print ("\n Testing parser" )
557
- print (' File = "{}"' .format (args .debug_filepath ))
557
+ separator ()
558
+ print (f' File = "{ args .debug_filepath } "' )
558
559
file_obj = FortranFile (args .debug_filepath , pp_suffixes )
559
560
err_str , _ = file_obj .load_from_disk ()
560
561
if err_str :
561
562
raise DebugError (f"Reading file failed: { err_str } " )
562
563
print (f" Detected format: { 'fixed' if file_obj .fixed else 'free' } " )
563
- print ("\n ========= \n Parser Output\n ========= \n " )
564
+ print ("\n " + "=" * 80 + " \n Parser Output\n " + "=" * 80 + " \n " )
564
565
file_ast = file_obj .parse (debug = True , pp_defs = pp_defs , include_dirs = include_dirs )
565
- print ("\n ========= \n Object Tree\n ========= \n " )
566
+ print ("\n " + "=" * 80 + " \n Object Tree\n " + "=" * 80 + " \n " )
566
567
for obj in file_ast .get_scopes ():
567
- print ("{}: {}" . format ( obj .get_type (), obj .FQSN ) )
568
+ print (f" { obj .get_type ()} : { obj .FQSN } " )
568
569
print_children (obj )
569
- print ("\n ========= \n Exportable Objects\n ========= \n " )
570
+ print ("\n " + "=" * 80 + " \n Exportable Objects\n " + "=" * 80 + " \n " )
570
571
for _ , obj in file_ast .global_dict .items ():
571
- print ("{}: {}" .format (obj .get_type (), obj .FQSN ))
572
+ print (f"{ obj .get_type ()} : { obj .FQSN } " )
573
+ separator ()
572
574
573
575
574
576
def ensure_file_accessible (filepath : str ):
0 commit comments