[Jprogramming] Re: Lev and dex
Raul Miller
rauldmiller at gmail.com
Sat Dec 29 23:10:47 HKT 2007
On Dec 29, 2007 6:08 AM, neville holmes <holmeswn at yahoo.com.au> wrote:
> > Anyways one basic problem is that J needs to know the
> > part of speech represented by [. and ]. before it
> > can parse expressions containing them.
...
> I'm afraid I don't see what you're getting at.
I will try again.
I will show you an adverb, A, and I will show two examples
of its use. Then I will show you how J parses this adverb.
Then I will show you what I believe to be your proposed
tacit equivalent, and I will ask you how you think J should
parse that tacit expression.
A=:1 :'1,2,u'
3 A
1 2 3
>: A
1 , 2 , >:
require 'trace'
trace '1,2,3'
--------------- 2 Dyad -------
2
,
3
2 3
--------------- 2 Dyad -------
1
,
2 3
1 2 3
==============================
1 2 3
trace '1,2,>:'
--------------- 5 Trident ----
2
,
>:
2 , >:
--------------- 5 Trident ----
1
,
2 , >:
1 , 2 , >:
==============================
So, anyways, I think you want
T=: 1, 2, [.
to be equivalent to A.
So, when J builds the tacit expression for T,
should J be using the Dyad parsing rules or the
Trident parsing rules?
Thanks,
--
Raul
More information about the Programming
mailing list