⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 rcparser.java

📁 外国人写的c#语法解析器
💻 JAVA
📖 第 1 页 / 共 5 页
字号:
			reportError(ex);
			consume();
			consumeUntil(_tokenSet_2);
		}
		returnAST = bitmap_resource_AST;
	}
	
	public final void cursor_resource() throws RecognitionException, TokenStreamException {
		
		returnAST = null;
		ASTPair currentAST = new ASTPair();
		AST cursor_resource_AST = null;
		
		try {      // for error handling
			AST tmp62_AST = null;
			tmp62_AST = astFactory.create(LT(1));
			astFactory.makeASTRoot(currentAST, tmp62_AST);
			match(LITERAL_cursor);
			{
			switch ( LA(1)) {
			case LITERAL_preload:
			case LITERAL_loadoncall:
			case LITERAL_fixed:
			case LITERAL_moveable:
			case LITERAL_discardable:
			case LITERAL_pure:
			case LITERAL_impure:
			case LITERAL_shared:
			case LITERAL_nonshared:
			{
				common_resource_attributes();
				astFactory.addASTChild(currentAST, returnAST);
				break;
			}
			case LEFT_BRACE:
			case STRING_LITERAL:
			case IDENTIFIER:
			case LITERAL_begin:
			{
				break;
			}
			default:
			{
				throw new NoViableAltException(LT(1), getFilename());
			}
			}
			}
			data_block();
			astFactory.addASTChild(currentAST, returnAST);
			cursor_resource_AST = (AST)currentAST.root;
		}
		catch (RecognitionException ex) {
			reportError(ex);
			consume();
			consumeUntil(_tokenSet_2);
		}
		returnAST = cursor_resource_AST;
	}
	
	public final void dialog_resource() throws RecognitionException, TokenStreamException {
		
		returnAST = null;
		ASTPair currentAST = new ASTPair();
		AST dialog_resource_AST = null;
		
		try {      // for error handling
			AST tmp63_AST = null;
			tmp63_AST = astFactory.create(LT(1));
			astFactory.makeASTRoot(currentAST, tmp63_AST);
			match(LITERAL_dialog);
			{
			switch ( LA(1)) {
			case LITERAL_preload:
			case LITERAL_loadoncall:
			case LITERAL_fixed:
			case LITERAL_moveable:
			case LITERAL_discardable:
			case LITERAL_pure:
			case LITERAL_impure:
			case LITERAL_shared:
			case LITERAL_nonshared:
			{
				common_resource_attributes();
				astFactory.addASTChild(currentAST, returnAST);
				break;
			}
			case LONG_LITERAL:
			case NUMERAL:
			case HEX_LITERAL:
			case OCTAL_LITERAL:
			{
				break;
			}
			default:
			{
				throw new NoViableAltException(LT(1), getFilename());
			}
			}
			}
			integer_literal();
			astFactory.addASTChild(currentAST, returnAST);
			match(COMMA);
			integer_literal();
			astFactory.addASTChild(currentAST, returnAST);
			match(COMMA);
			integer_literal();
			astFactory.addASTChild(currentAST, returnAST);
			match(COMMA);
			integer_literal();
			astFactory.addASTChild(currentAST, returnAST);
			{
			_loop108:
			do {
				if ((_tokenSet_33.member(LA(1)))) {
					dialog_common_resource_info();
					astFactory.addASTChild(currentAST, returnAST);
				}
				else {
					break _loop108;
				}
				
			} while (true);
			}
			open_definition();
			{
			_loop110:
			do {
				if ((_tokenSet_34.member(LA(1)))) {
					dialog_control_definition();
					astFactory.addASTChild(currentAST, returnAST);
				}
				else {
					break _loop110;
				}
				
			} while (true);
			}
			close_definition();
			dialog_resource_AST = (AST)currentAST.root;
		}
		catch (RecognitionException ex) {
			reportError(ex);
			consume();
			consumeUntil(_tokenSet_2);
		}
		returnAST = dialog_resource_AST;
	}
	
	public final void dialogex_resource() throws RecognitionException, TokenStreamException {
		
		returnAST = null;
		ASTPair currentAST = new ASTPair();
		AST dialogex_resource_AST = null;
		
		try {      // for error handling
			AST tmp67_AST = null;
			tmp67_AST = astFactory.create(LT(1));
			astFactory.makeASTRoot(currentAST, tmp67_AST);
			match(LITERAL_dialogex);
			{
			switch ( LA(1)) {
			case LITERAL_preload:
			case LITERAL_loadoncall:
			case LITERAL_fixed:
			case LITERAL_moveable:
			case LITERAL_discardable:
			case LITERAL_pure:
			case LITERAL_impure:
			case LITERAL_shared:
			case LITERAL_nonshared:
			{
				common_resource_attributes();
				astFactory.addASTChild(currentAST, returnAST);
				break;
			}
			case LONG_LITERAL:
			case LEFT_PARENTHESE:
			case LOGICAL_NOT:
			case BITWISE_NOT:
			case PLUS:
			case MINUS:
			case INC:
			case DEC:
			case STRING_LITERAL:
			case NUMERAL:
			case IDENTIFIER:
			case HEX_LITERAL:
			case OCTAL_LITERAL:
			case LITERAL_not:
			case LITERAL_l:
			{
				break;
			}
			default:
			{
				throw new NoViableAltException(LT(1), getFilename());
			}
			}
			}
			expression();
			astFactory.addASTChild(currentAST, returnAST);
			match(COMMA);
			expression();
			astFactory.addASTChild(currentAST, returnAST);
			match(COMMA);
			expression();
			astFactory.addASTChild(currentAST, returnAST);
			match(COMMA);
			expression();
			astFactory.addASTChild(currentAST, returnAST);
			{
			switch ( LA(1)) {
			case COMMA:
			{
				match(COMMA);
				expression();
				astFactory.addASTChild(currentAST, returnAST);
				break;
			}
			case LEFT_BRACE:
			case LITERAL_begin:
			case LITERAL_language:
			case LITERAL_characteristics:
			case LITERAL_version:
			case LITERAL_caption:
			case LITERAL_class:
			case LITERAL_style:
			case LITERAL_exstyle:
			case LITERAL_font:
			case LITERAL_menu:
			{
				break;
			}
			default:
			{
				throw new NoViableAltException(LT(1), getFilename());
			}
			}
			}
			{
			_loop132:
			do {
				if ((_tokenSet_33.member(LA(1)))) {
					dialog_common_resource_info();
					astFactory.addASTChild(currentAST, returnAST);
				}
				else {
					break _loop132;
				}
				
			} while (true);
			}
			open_definition();
			{
			_loop134:
			do {
				if ((_tokenSet_34.member(LA(1)))) {
					dialogex_control_definition();
					astFactory.addASTChild(currentAST, returnAST);
				}
				else {
					break _loop134;
				}
				
			} while (true);
			}
			close_definition();
			dialogex_resource_AST = (AST)currentAST.root;
		}
		catch (RecognitionException ex) {
			reportError(ex);
			consume();
			consumeUntil(_tokenSet_2);
		}
		returnAST = dialogex_resource_AST;
	}
	
	public final void font_resource() throws RecognitionException, TokenStreamException {
		
		returnAST = null;
		ASTPair currentAST = new ASTPair();
		AST font_resource_AST = null;
		
		try {      // for error handling
			AST tmp72_AST = null;
			tmp72_AST = astFactory.create(LT(1));
			astFactory.makeASTRoot(currentAST, tmp72_AST);
			match(LITERAL_font);
			{
			switch ( LA(1)) {
			case LITERAL_preload:
			case LITERAL_loadoncall:
			case LITERAL_fixed:
			case LITERAL_moveable:
			case LITERAL_discardable:
			case LITERAL_pure:
			case LITERAL_impure:
			case LITERAL_shared:
			case LITERAL_nonshared:
			{
				common_resource_attributes();
				astFactory.addASTChild(currentAST, returnAST);
				break;
			}
			case LEFT_BRACE:
			case STRING_LITERAL:
			case IDENTIFIER:
			case LITERAL_begin:
			{
				break;
			}
			default:
			{
				throw new NoViableAltException(LT(1), getFilename());
			}
			}
			}
			data_block();
			astFactory.addASTChild(currentAST, returnAST);
			font_resource_AST = (AST)currentAST.root;
		}
		catch (RecognitionException ex) {
			reportError(ex);
			consume();
			consumeUntil(_tokenSet_2);
		}
		returnAST = font_resource_AST;
	}
	
	public final void icon_resource() throws RecognitionException, TokenStreamException {
		
		returnAST = null;
		ASTPair currentAST = new ASTPair();
		AST icon_resource_AST = null;
		
		try {      // for error handling
			AST tmp73_AST = null;
			tmp73_AST = astFactory.create(LT(1));
			astFactory.makeASTRoot(currentAST, tmp73_AST);
			match(LITERAL_icon);
			{
			switch ( LA(1)) {
			case LITERAL_preload:
			case LITERAL_loadoncall:
			case LITERAL_fixed:
			case LITERAL_moveable:
			case LITERAL_discardable:
			case LITERAL_pure:
			case LITERAL_impure:
			case LITERAL_shared:
			case LITERAL_nonshared:
			{
				common_resource_attributes();
				astFactory.addASTChild(currentAST, returnAST);
				break;
			}
			case LEFT_BRACE:
			case STRING_LITERAL:
			case IDENTIFIER:
			case LITERAL_begin:
			{
				break;
			}
			default:
			{
				throw new NoViableAltException(LT(1), getFilename());
			}
			}
			}
			data_block();
			astFactory.addASTChild(currentAST, returnAST);
			icon_resource_AST = (AST)currentAST.root;
		}
		catch (RecognitionException ex) {
			reportError(ex);
			consume();
			consumeUntil(_tokenSet_2);
		}
		returnAST = icon_resource_AST;
	}
	
	public final void menu_resource() throws RecognitionException, TokenStreamException {
		
		returnAST = null;
		ASTPair currentAST = new ASTPair();
		AST menu_resource_AST = null;
		
		try {      // for error handling
			AST tmp74_AST = null;
			tmp74_AST = astFactory.create(LT(1));
			astFactory.makeASTRoot(currentAST, tmp74_AST);
			match(LITERAL_menu);
			{
			switch ( LA(1)) {
			case LITERAL_preload:
			case LITERAL_loadoncall:
			case LITERAL_fixed:
			case LITERAL_moveable:
			case LITERAL_discardable:
			case LITERAL_pure:
			case LITERAL_impure:
			case LITERAL_shared:
			case LITERAL_nonshared:
			{
				common_resource_attributes();
				astFactory.addASTChild(currentAST, returnAST);
				break;
			}
			case LEFT_BRACE:
			case LITERAL_begin:
			case LITERAL_language:
			case LITERAL_characteristics:
			case LITERAL_version:
			{
				break;
			}
			default:
			{
				throw new NoViableAltException(LT(1), getFilename());
			}
			}
			}
			{
			_loop159:
			do {
				if ((_tokenSet_31.member(LA(1)))) {
					common_resource_info();
					astFactory.addASTChild(currentAST, returnAST);
				}
				else {
					break _loop159;
				}
				
			} while (true);
			}
			open_definition();
			{
			_loop161:
			do {
				if ((_tokenSet_35.member(LA(1)))) {
					menu_entry_item();
					astFactory.addASTChild(currentAST, returnAST);
				}
				else {
					break _loop161;
				}
				
			} while (true);
			}
			close_definition();
			menu_resource_AST = (AST)currentAST.root;
		}
		catch (RecognitionException ex) {
			reportError(ex);
			consume();
			consumeUntil(_tokenSet_2);
		}
		returnAST = menu_resource_AST;
	}
	
	public final void menuex_resource() throws RecognitionException, TokenStreamException {
		
		returnAST = null;
		ASTPair currentAST = new ASTPair();
		AST menuex_resource_AST = null;
		
		try {      // for error handling
			AST tmp75_AST = null;
			tmp75_AST = astFactory.create(LT(1));
			astFactory.makeASTRoot(currentAST, tmp75_AST);
			match(LITERAL_menuex);
			{
			switch ( LA(1)) {
			case LITERAL_preload:
			case LITERAL_loadoncall:
			case LITERAL_fixed:
			case LITERAL_moveable:
			case LITERAL_discardable:
			case LITERAL_pure:
			case LITERAL_impure:
			case LITERAL_shared:
			case LITERAL_nonshared:
			{
				common_resource_attributes();
				astFactory.addASTChild(currentAST, returnAST);
				break;
			}
			case LEFT_BRACE:
			case LITERAL_begin:
			case LITERAL_language:
			case LITERAL_characteristics:
			case LITERAL_version:
			{
				break;
			}
			default:
			{
				throw new NoViableAltException(LT(1), getFilename());
			}
			}
			}
			{
			_loop178:
			do {
				if ((_tokenSet_31.member(LA(1)))) {
					common_resource_info();
					astFactory.addASTChild(currentAST, returnAST);
				}
				else {
					break _loop178;
				}
				
			} while (true);
			}
			open_definition();
			{
			_loop180:
			do {
				if ((_tokenSet_35.member(LA(1)))) {
					menuex_entry_item();
					astFactory.addASTChild(currentAST, returnAST);
				}
				else {
					break _loop180;
				}
				
			} while (true);
			}
			close_definition();
			menuex_resource_AST = (AST)curre

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -