/*-----------------------------------------------------------*/ /*--- Constructor(s) ----------------------------------------*/ /*-----------------------------------------------------------*/ /** Simple constructor. Note: this should not be used until the number of * terminals in the grammar has been established. */ public parse_action_row() { /* make sure the size is Set */ if (_size <= 0 ) _size = terminal.number(); /* allocate the array */ under_term = new parse_action[size()]; /* Set each element to an error action */ for (int i=0; i<_size; i++) under_term[i] = new parse_action(); }
/*-----------------------------------------------------------*/ /*--- Constructor(s) ----------------------------------------*/ /*-----------------------------------------------------------*/ /** Simple constructor. Note: this should not be used until the number of * terminals in the grammar has been established. */ public parse_action_row() { /* make sure the size is Set */ if (_size <= 0) { _size = terminal.number(); } /* allocate the array */ under_term = new parse_action[size()]; /* Set each element to an error action */ for (int i = 0; i < _size; i++) { under_term[i] = new parse_action(); } }
/*. . . . . . . . . . . . . . . . . . . . . . . . . . . . . .*/ /** Equality test. */ public new bool Equals(parse_action other) { return other != null && other.kind() == NONASSOC; }
/*. . . . . . . . . . . . . . . . . . . . . . . . . . . . . .*/ /** Equality test. */ public bool Equals(parse_action other) { /* we match all error actions */ return(other != null && other.kind() == kind()); }
/*. . . . . . . . . . . . . . . . . . . . . . . . . . . . . .*/ /** Equality test. */ new public bool Equals(parse_action other) { return(other != null && other.kind() == NONASSOC); }
/*. . . . . . . . . . . . . . . . . . . . . . . . . . . . . .*/ /** Equality test. */ public bool Equals(parse_action other) { /* we match all error actions */ return other != null && other.kind() == kind(); }