Raul,
These tutorials seem very valuable, but I am quite lost.
I was fascinated by the following snippet because it looks like you somehow
are defining an explicit definition of some sort using an adverb
x2jDefn_nifxml_, but without the usual parts ` : 0` before the definition,
but ending with a line of only `)`. I got an error, so I am not sure how to
proceed to understand further the result of x2jDefn_nifxml_. Also, I am not
familiar with the syntax of the lines that use `:=`.
It might help me if you showed an example that just repeated the previous
example, but with the new facility.
(Actually, I am preparing another reply that will follow.)
x2jDefn_nifxml_
1 : 0
for_i. <;._2 (0 : 0) do.
'nm df'=. ':=' splitstring >{.'NB.' splitstring >i
'mn dy'=. dltb each 2 {. ' : ' splitstring df
nm=. dltb nm
if. 0=#dy do. nm x2jChar (3 : mn)
elseif. 0=#mn do. nm x2jElm (4 : dy)
elseif. do. nm x2jElm (3 : (mn;':';dy)) end.
end.
i.0 0
)
'Items'x2jDefn_nifxml_
/ := Result : Result=: ''
compound := cEnd y : x cStart y
add := aEnd y : x aStart y
add := aChr y
)
|length error: x2jDefn_nifxml_
| 'nm df' =.':='splitstring>{.'NB.'splitstring>i
Thank you,
--
(B=)
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm