push(action.defineVariable(def, id));
push(action.defineSymbol(SUBMENU, def, id));
	public final void definesubmenustate(AST _t) throws RecognitionException {				AST definesubmenustate_AST_in = (_t == ASTNULL) ? null : (AST)_t;		AST def = null;		AST id = null;				AST __t981 = _t;		def = _t==ASTNULL ? null :(AST)_t;		match(_t,DEFINE);		_t = _t.getFirstChild();		{		if (_t==null) _t=ASTNULL;		switch ( _t.getType()) {		case NEW:		{			AST __t983 = _t;			AST tmp818_AST_in = (AST)_t;			match(_t,NEW);			_t = _t.getFirstChild();			{			if (_t==null) _t=ASTNULL;			switch ( _t.getType()) {			case GLOBAL:			{				AST tmp819_AST_in = (AST)_t;				match(_t,GLOBAL);				_t = _t.getNextSibling();				break;			}			case SHARED:			{				break;			}			default:			{				throw new NoViableAltException(_t);			}			}			}			AST tmp820_AST_in = (AST)_t;			match(_t,SHARED);			_t = _t.getNextSibling();			_t = __t983;			_t = _t.getNextSibling();			break;		}		case SHARED:		{			AST tmp821_AST_in = (AST)_t;			match(_t,SHARED);			_t = _t.getNextSibling();			break;		}		case SUBMENU:		{			break;		}		default:		{			throw new NoViableAltException(_t);		}		}		}		AST tmp822_AST_in = (AST)_t;		match(_t,SUBMENU);		_t = _t.getNextSibling();		id = (AST)_t;		match(_t,ID);		_t = _t.getNextSibling();		if ( inputState.guessing==0 ) {			push(action.defineVariable(def, id));		}		{		_loop986:		do {			if (_t==null) _t=ASTNULL;			if ((_tokenSet_10.member(_t.getType()))) {				menu_opt(_t);				_t = _retTree;			}			else {				break _loop986;			}					} while (true);		}		{		_loop988:		do {			if (_t==null) _t=ASTNULL;			if ((_tokenSet_11.member(_t.getType()))) {				menu_list_item(_t);				_t = _retTree;			}			else {				break _loop988;			}					} while (true);		}		state_end(_t);		_t = _retTree;		_t = __t981;		_t = _t.getNextSibling();		if ( inputState.guessing==0 ) {			action.addToScope(pop());		}		_retTree = _t;	}