1
$\begingroup$

Sometimes, I think that it's difficult to learn high level codes, or even when looking back on some long lines of codes I myself had written, espectially when lots of pure-functions was used, so I'm wondering that is there packages can help read, analyze or understand the structure\purpose of codes' segments, although MMA has dynamic explanation on functions,but that's not enough in large scale. i.e.

ToString /@ Table[Random[], {100}] // Style[#, Red] &

If the upper code could be marked like this, it would be easy to understand the computation process priorities.

Needs["RAUPackages`"](*fake*)
RAUParse["ToString /@ Table[Random[], {100}] // Style[#, Red] &",{"/@","//"}]

RAUParse shall output lines with underlines and sequence numbers like this. better in colors: $$\underline{\underline{ToString /@ \underline{Table[Random[], {100}]}_1 }_2// Style[\#, Red]}_3$$ Hope there be this kind packages could take the ability! Please show your opinion if keeping similar ideas to advance the subject.

$\endgroup$
  • $\begingroup$ What exactly do you want to highligh? p.s. mathematica.stackexchange.com/q/29339/5478 $\endgroup$ – Kuba Nov 28 '18 at 14:00
  • $\begingroup$ @Kuba The result produced by TracePrint is too detailed to read through, I want to understand program lines. $\endgroup$ – Jerry Nov 28 '18 at 14:07
  • 1
    $\begingroup$ Maybe mathematica.stackexchange.com/q/1742/5478? $\endgroup$ – Kuba Nov 28 '18 at 14:11
  • $\begingroup$ I understand you would like to have an IDE that marks especial words, iddents parts inside parts, and why not help with the options a instruction has and can select beetwen them this system nf notebooks pretends to arrive to this but has limits, It'l be a suggestion to Wolfram $\endgroup$ – Anxon Pués Nov 28 '18 at 14:14
  • $\begingroup$ @AnxonPués If it could be integrated with MMA will be great. $\endgroup$ – Jerry Nov 28 '18 at 14:32