push(action.defineVariable(def, id));
push(action.defineSymbol(DATASOURCE, def, id));
	public final void definedatasourcestate(AST _t) throws RecognitionException {				AST definedatasourcestate_AST_in = (_t == ASTNULL) ? null : (AST)_t;		AST def = null;		AST id = null;				AST __t836 = _t;		def = _t==ASTNULL ? null :(AST)_t;		match(_t,DEFINE);		_t = _t.getFirstChild();		{		if (_t==null) _t=ASTNULL;		switch ( _t.getType()) {		case NEW:		{			AST __t838 = _t;			AST tmp732_AST_in = (AST)_t;			match(_t,NEW);			_t = _t.getFirstChild();			{			if (_t==null) _t=ASTNULL;			switch ( _t.getType()) {			case GLOBAL:			{				AST tmp733_AST_in = (AST)_t;				match(_t,GLOBAL);				_t = _t.getNextSibling();				break;			}			case SHARED:			{				break;			}			default:			{				throw new NoViableAltException(_t);			}			}			}			AST tmp734_AST_in = (AST)_t;			match(_t,SHARED);			_t = _t.getNextSibling();			_t = __t838;			_t = _t.getNextSibling();			break;		}		case SHARED:		{			AST tmp735_AST_in = (AST)_t;			match(_t,SHARED);			_t = _t.getNextSibling();			break;		}		case DATASOURCE:		{			break;		}		default:		{			throw new NoViableAltException(_t);		}		}		}		AST tmp736_AST_in = (AST)_t;		match(_t,DATASOURCE);		_t = _t.getNextSibling();		id = (AST)_t;		match(_t,ID);		_t = _t.getNextSibling();		if ( inputState.guessing==0 ) {			push(action.defineVariable(def, id));		}		AST tmp737_AST_in = (AST)_t;		match(_t,FOR);		_t = _t.getNextSibling();		{		if (_t==null) _t=ASTNULL;		switch ( _t.getType()) {		case QUERY:		{			AST __t841 = _t;			AST tmp738_AST_in = (AST)_t;			match(_t,QUERY);			_t = _t.getFirstChild();			AST tmp739_AST_in = (AST)_t;			match(_t,ID);			_t = _t.getNextSibling();			_t = __t841;			_t = _t.getNextSibling();			break;		}		case 3:		case COMMA:		case RECORD_NAME:		{			break;		}		default:		{			throw new NoViableAltException(_t);		}		}		}		{		if (_t==null) _t=ASTNULL;		switch ( _t.getType()) {		case RECORD_NAME:		{			source_buffer_phrase(_t);			_t = _retTree;			break;		}		case 3:		case COMMA:		{			break;		}		default:		{			throw new NoViableAltException(_t);		}		}		}		{		_loop844:		do {			if (_t==null) _t=ASTNULL;			if ((_t.getType()==COMMA)) {				AST tmp740_AST_in = (AST)_t;				match(_t,COMMA);				_t = _t.getNextSibling();				source_buffer_phrase(_t);				_t = _retTree;			}			else {				break _loop844;			}					} while (true);		}		if ( inputState.guessing==0 ) {			action.addToScope(pop());		}		_t = __t836;		_t = _t.getNextSibling();		_retTree = _t;	}