_t = __t142;
_t = __t127;
	public final void aggregate_opt(AST _t) throws RecognitionException {				AST aggregate_opt_AST_in = (_t == ASTNULL) ? null : (AST)_t;		AST id1 = null;		AST id2 = null;		AST id3 = null;		AST id4 = null;		AST id5 = null;		AST id6 = null;		AST id7 = null;		AST id8 = null;		AST id9 = null;		AST id10 = null;				if (_t==null) _t=ASTNULL;		switch ( _t.getType()) {		case AVERAGE:		{			AST __t132 = _t;			id1 = _t==ASTNULL ? null :(AST)_t;			match(_t,AVERAGE);			_t = _t.getFirstChild();			{			if (_t==null) _t=ASTNULL;			switch ( _t.getType()) {			case COLUMNLABEL:			case LABEL:			{				label_constant(_t);				_t = _retTree;				break;			}			case 3:			{				break;			}			default:			{				throw new NoViableAltException(_t);			}			}			}			if ( inputState.guessing==0 ) {				action.addToSymbolScope(action.defineVariable(id1, id1, DECIMAL));			}			_t = __t132;			_t = _t.getNextSibling();			break;		}		case COUNT:		{			AST __t134 = _t;			id2 = _t==ASTNULL ? null :(AST)_t;			match(_t,COUNT);			_t = _t.getFirstChild();			{			if (_t==null) _t=ASTNULL;			switch ( _t.getType()) {			case COLUMNLABEL:			case LABEL:			{				label_constant(_t);				_t = _retTree;				break;			}			case 3:			{				break;			}			default:			{				throw new NoViableAltException(_t);			}			}			}			if ( inputState.guessing==0 ) {				action.addToSymbolScope(action.defineVariable(id2, id2, INTEGER));			}			_t = __t134;			_t = _t.getNextSibling();			break;		}		case MAXIMUM:		{			AST __t136 = _t;			id3 = _t==ASTNULL ? null :(AST)_t;			match(_t,MAXIMUM);			_t = _t.getFirstChild();			{			if (_t==null) _t=ASTNULL;			switch ( _t.getType()) {			case COLUMNLABEL:			case LABEL:			{				label_constant(_t);				_t = _retTree;				break;			}			case 3:			{				break;			}			default:			{				throw new NoViableAltException(_t);			}			}			}			if ( inputState.guessing==0 ) {				action.addToSymbolScope(action.defineVariable(id3, id3, DECIMAL));			}			_t = __t136;			_t = _t.getNextSibling();			break;		}		case MINIMUM:		{			AST __t138 = _t;			id4 = _t==ASTNULL ? null :(AST)_t;			match(_t,MINIMUM);			_t = _t.getFirstChild();			{			if (_t==null) _t=ASTNULL;			switch ( _t.getType()) {			case COLUMNLABEL:			case LABEL:			{				label_constant(_t);				_t = _retTree;				break;			}			case 3:			{				break;			}			default:			{				throw new NoViableAltException(_t);			}			}			}			if ( inputState.guessing==0 ) {				action.addToSymbolScope(action.defineVariable(id4, id4, DECIMAL));			}			_t = __t138;			_t = _t.getNextSibling();			break;		}		case TOTAL:		{			AST __t140 = _t;			id5 = _t==ASTNULL ? null :(AST)_t;			match(_t,TOTAL);			_t = _t.getFirstChild();			{			if (_t==null) _t=ASTNULL;			switch ( _t.getType()) {			case COLUMNLABEL:			case LABEL:			{				label_constant(_t);				_t = _retTree;				break;			}			case 3:			{				break;			}			default:			{				throw new NoViableAltException(_t);			}			}			}			if ( inputState.guessing==0 ) {				action.addToSymbolScope(action.defineVariable(id5, id5, DECIMAL));			}			_t = __t140;			_t = _t.getNextSibling();			break;		}		case SUBAVERAGE:		{			AST __t142 = _t;			id6 = _t==ASTNULL ? null :(AST)_t;			match(_t,SUBAVERAGE);			_t = _t.getFirstChild();			{			if (_t==null) _t=ASTNULL;			switch ( _t.getType()) {			case COLUMNLABEL:			case LABEL:			{				label_constant(_t);				_t = _retTree;				break;			}			case 3:			{				break;			}			default:			{				throw new NoViableAltException(_t);			}			}			}			if ( inputState.guessing==0 ) {				action.addToSymbolScope(action.defineVariable(id6, id6, DECIMAL));			}			_t = __t142;			_t = _t.getNextSibling();			break;		}		case SUBCOUNT:		{			AST __t144 = _t;			id7 = _t==ASTNULL ? null :(AST)_t;			match(_t,SUBCOUNT);			_t = _t.getFirstChild();			{			if (_t==null) _t=ASTNULL;			switch ( _t.getType()) {			case COLUMNLABEL:			case LABEL:			{				label_constant(_t);				_t = _retTree;				break;			}			case 3:			{				break;			}			default:			{				throw new NoViableAltException(_t);			}			}			}			if ( inputState.guessing==0 ) {				action.addToSymbolScope(action.defineVariable(id7, id7, DECIMAL));			}			_t = __t144;			_t = _t.getNextSibling();			break;		}		case SUBMAXIMUM:		{			AST __t146 = _t;			id8 = _t==ASTNULL ? null :(AST)_t;			match(_t,SUBMAXIMUM);			_t = _t.getFirstChild();			{			if (_t==null) _t=ASTNULL;			switch ( _t.getType()) {			case COLUMNLABEL:			case LABEL:			{				label_constant(_t);				_t = _retTree;				break;			}			case 3:			{				break;			}			default:			{				throw new NoViableAltException(_t);			}			}			}			if ( inputState.guessing==0 ) {				action.addToSymbolScope(action.defineVariable(id8, id8, DECIMAL));			}			_t = __t146;			_t = _t.getNextSibling();			break;		}		case SUBMINIMUM:		{			AST __t148 = _t;			id9 = _t==ASTNULL ? null :(AST)_t;			match(_t,SUBMINIMUM);			_t = _t.getFirstChild();			{			if (_t==null) _t=ASTNULL;			switch ( _t.getType()) {			case COLUMNLABEL:			case LABEL:			{				label_constant(_t);				_t = _retTree;				break;			}			case 3:			{				break;			}			default:			{				throw new NoViableAltException(_t);			}			}			}			if ( inputState.guessing==0 ) {				action.addToSymbolScope(action.defineVariable(id9, id9, DECIMAL));			}			_t = __t148;			_t = _t.getNextSibling();			break;		}		case SUBTOTAL:		{			AST __t150 = _t;			id10 = _t==ASTNULL ? null :(AST)_t;			match(_t,SUBTOTAL);			_t = _t.getFirstChild();			{			if (_t==null) _t=ASTNULL;			switch ( _t.getType()) {			case COLUMNLABEL:			case LABEL:			{				label_constant(_t);				_t = _retTree;				break;			}			case 3:			{				break;			}			default:			{				throw new NoViableAltException(_t);			}			}			}			if ( inputState.guessing==0 ) {				action.addToSymbolScope(action.defineVariable(id10, id10, DECIMAL));			}			_t = __t150;			_t = _t.getNextSibling();			break;		}		default:		{			throw new NoViableAltException(_t);		}		}		_retTree = _t;	}