User talk:DanBron: Difference between revisions

Line 12:
 
:I added [[XML_Reading#J|XML reading]]. For this particular task, I think the XSLT library is best suited. What script defines <tt>xmlread</tt> in your example? I couldn't find it anywhere in the base library or addons.
:: Well, don't look for it because it's just the input to process. I cook up this soln because the task has the phrase: quote '... using whatever means desired'. :-) --[[User:Gaaijz|Gaaijz]] 10:44, 24 January 2009 (UTC)
:Regarding [[Jensen's Device]], J doesn't really have semantics of the type needed. The only two approaches I can think of entail exploiting mapped files or the parse rules which stack names (e.g. the proverb rule). Unfortunately passing by name isn't sufficient; for Jensen's Device (at least the example given), you need the exact ''expression'' that calculated the parameter (in this case, we need to be able to say <tt>some_verb 0;1;100;1 % i</tt> and give the verb access to the expression <tt>1%i</tt> rather than just its result. AFAICT, this isn't really possible in J, without quoting the expression, which evades the spirit of the task.
Anonymous user