Re: show subscripts in dump - help and ideas requested

new topic     » goto parent     » topic index » view thread      » older message » newer message

Sorry, I did not respect the specifications. I still don't because I use object first and object name second.

If you rename analyzeSequence in clever_dump, here is what you get as asked.

clever_dump(symtab, "symtab") 
clever_dump(1, "simple")  
clever_dump("text","text")  
clever_dump({-1,0,1},"shortsq")  
symtab =  
.  [1] 1 
.  [2] 0 
.  [3] 3 
.  [4] 4 
.  [5] 0 
.  [6] 0 
.  [7] 0 
.  [8] 8 
.  [9] 0 
.  [10] 0 
.  [11] 0 
.  [12] 12 
.  [13] 0 
.  [14] 0 
.  [15] 15 
.  [16] 
.  .  [1] "C:\Program Files (x86)\Phix\builtins\" 
.  .  [2] "C:\Program Files (x86)\Phix\" 
.  .  [3] "C:\Program Files (x86)\Phix\demo\misc\eubins-mingw32\" 
.  [17] 
.  .  [1] 
.  .  .  [1] 3 
.  .  .  [2] "someotherfile.exw" 
.  .  [2] 
.  .  .  [1] 3 
.  .  .  [2] "somefile.e" 
.  .  [3] 
.  .  .  [1] 1 
.  .  .  [2] "prtnid2.e" 
.  .  [4] 
.  .  .  [1] 1 
.  .  .  [2] "psprint.e" 
.  .  [5] 
.  .  .  [1] 1 
.  .  .  [2] "pprntf.e" 
.  [18] 26 
.  [19] 2 
.  [20] {-1073741819,0,32463637,32017528,253,32049420,0,0} 
.  [21] 
.  .  [1] -1 
.  .  [2] 8 
.  .  [3] 1 
.  .  [4] 2304 
.  .  [5] 0 
.  .  [6] 253 
.  .  [7] "P" 
.  .  [8] 0 
.  .  [9] 0 
.  .  [10] 0 
.  .  [11] 32452560 
.  .  [12] {0,-77,28,35,38,-1,41,46,-1,49,52,55,-1,58,-1,124,155,163,210,256,259,280,291,307,345,352,396,434,-1,436,478,483,-2,501,550,-1,561,-3,577,625,662,700,712,727,738,-1,744,782,790,808,852,890,905,950,-2,957,962,970,972,983,-2,991,1033,1038,1048} 
.  .  [13] 1 
.  .  [14] 0 
.  [22] 0 
simple =  1 
text =  "text" 
shortsq =  {-1,0,1} 

You can still specify a debug_file and a user-defined translation as stated before.

clever_dump(symtab, "symtab", f_debug) 
clever_dump(symtab, "symtab", f_debug, routine_id("identifySymtabComponents")) 
new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu