I wrote:
>           ae =: + 1 : (LF -.~ 0 : 0)

Raul responded:
> This gives me a syntax error when I execute it.

Did you remove the indentation first?  I indent J code to emphasize it and
distinguish it from prose.  

Anyway, you might want to simply load the script:

   
http://www.jsoftware.com/svn/DanBron/trunk/environment/anonymous_evoke2.ijs

Certainly it'll be easier to understand the code that way.   I'm looking
for improvements to  nest2Box  .  

Anyway, for form's sake, here it is again fully fixed, but not indented,
and the lines are short enough to avoid wrapping.  Note that this is an
updated version that handles (discards) comments.  I do this for user
convenience; handling comments is inconsistent with executing parsing
productions.

ae =: + 1 : (0 : 0 -. 10{a.)
((((((("_)(`''))(<@(
(,'0');<@])`))(`(<(,'0');0)))(`:
6))(('@.';(,&<&((,'0');<
@])((;:'()')>@:{.^:(1=#)L:1
^:_@:(>@:{.L:1)@:((('';1)<
@:,;.1]<@:(}.@:}:^:(1<#));.
2&>~(=<./)&.>@:{:)L:1^:(1
+>./@:>@:{:))@:(i...@#@],&<
+/\@:(-/)@:(=/))]))@:(
(((,'0');<@])@:".@:]^:[&.>
~([:((''''={.)+.(':'~:{:)*.'_0123456789'e.~
{.)@|:2{.&>]))@:(}.~(_1*'NB.'
(('.:'e.~{:@])<(-:}:))4{.&>
{:))@:;:))`))(`:6))(@.1 0 2)
)

I just copied & pasted the above into jconsole, running without a profile,
and it worked fine.

-Dan
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to