The dissect display is interactive. If you click on a result, the
selected cell of the result is highlighted, along with the input cells
that contributed to it. You can click again to move to subcells, etc.
Henry Rich
On 6/30/2019 7:28 AM, Thomas Bulka wrote:
Am 30.06.2019 13:02 schrieb 'Rob Hodgkinson' via Programming:
Hi Thomas, another suggestion to help you understand J phrases.
Henry Rich now maintains the J engine, and awhile ago wrote a very
handy verb ‘dissect’.
If you run J (presumably you are running in JQT ?) then you can
install the ‘debug’ package in the Package Manager (see JQT menu),
then do this:
load ‘debug’ NB. Or if you only want <dissect>
you can <load ‘debug/dissect’>
dissect ‘3 (-.&i.~,]) 7'
You will see a very nice graphic appear in a new window, that
demonstrates the way in which this phrase is executed (akin to a parse
tree, but more interactive and more useful as it shows execution).
Experiment with simpler phrases first to see how the graphic is
constructed, it can be very helpful.
Regards Rob
Hi Rob,
I didn't know the "dissect"-verb yet, but I just tried it and it looks
very interesting. This is really helpful! I'll go on experimenting
with it, to get a better understanding for the construction of the
graphical result.
Regards
Thomas
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm
---
This email has been checked for viruses by AVG.
https://www.avg.com
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm