J provides different kinds of tools for parsing, depending on what you mean by the word "parse". As a general rule, you'll need to quote the sentence so that the parsing tool can see it as character data.
One such tool is ;: (In other words: ;: 'g@[&0') Another such tool is trace (For example: trace (require 'trace') ] 'g@[&0' - but you only need to run require 'trace' once per session). Note that the structure of the trace output follows this pattern: 1 line identifying parsing rule, 2 or 3 lines identifying the things being combined by that parsing rule, and then n lines showing the result produced by them. But do either of these tools match the concept of "parse" that you had in mind? If not, could you explain what you are asking for? Thanks! -- Raul On Sat, Sep 21, 2013 at 9:24 AM, Alex Giannakopoulos <[email protected]> wrote: > On 20 September 2013 13:02, Henry Rich <[email protected]> wrote: > >> g@[&0 >> > > It looks brilliant! > But how on earth do you parse that?? Sure beats me. > > I'm happy with Ric's g@]^:[ > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
