/*-----------------------------------------------------------*/
        /*--- 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();
        }
Exemplo n.º 2
0
        /*-----------------------------------------------------------*/
        /*--- 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;
 }
Exemplo n.º 4
0
        /*. . . . . . . . . . . . . . . . . . . . . . . . . . . . . .*/

        /** Equality test. */
        public bool Equals(parse_action other)
        {
            /* we match all error actions */
            return(other != null && other.kind() == kind());
        }
Exemplo n.º 5
0
        /*. . . . . . . . . . . . . . . . . . . . . . . . . . . . . .*/

        /** Equality test. */
        new  public bool Equals(parse_action other)
        {
            return(other != null && other.kind() == NONASSOC);
        }
Exemplo n.º 6
0
		/*. . . . . . . . . . . . . . . . . . . . . . . . . . . . . .*/

		/** Equality test. */
		public bool Equals(parse_action other)
		{
			/* we match all error actions */
			return other != null && other.kind() == kind();
		}