You're not reading the parse table right. The order of lines is not the priority of the operation in the same sense that operators have a precedence order in C, for example.
You have to follow the parsing token by token to see when the bits of the sentence get into a position where they match a pattern in the table. That is what causes the parsing to produce the order it does. Here, EDGE NOUN CONJ VERB is the first thing matched, and it replaces NOUN CONJ VERB with an anonymous verb. (For details, see the late chapters in _J for C Programmers_) Henry Rich > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of adam dunne > Sent: Monday, July 16, 2007 2:44 AM > To: [email protected] > Subject: [Jprogramming] parser rules > > See the following:f=:2&^~ > f > --------T-┐ > │--T-T-┐│~│ > ││2│&│^││ │ > │L-+-+--│ │ > L-------+-- > f 3 > 1.15792e77 > g=:2&(^~) > g > --T-T-----┐ > │2│&│--T-┐│ > │ │ ││^│~││ > │ │ │L-+--│ > L-+-+------ > g 3 > 9 > As you can see, the parser does the adverb before the conjunction, > with no parenthesis, in the first case. > Yet the parse table has the adverb before the conjn. Any explanations? > ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
