Henry, how does one go about adding a new parsing rule in the new parser?
Previously, I would add an ACTION to define what happens and then add an
entry to "PT cases[]". Now, it seems I have to add something like
#define PMONAD1 1+0
and an action in the switch statement below.
But how do I know what integer to put in the number define?
And what is the purpose of the statements in the action:
EPZ(stack[3].a = folk(stack[1].a, stack[2].a, stack[3].a)); // Pretty
obvious
stack[3].t = stack[1].t; // What does
this do ?
SM(2,0); // What does
this do ?
stack += 2; // I guess we used 3 items and got
one back so we advanced 2 places ???
Thanks.
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm