亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? nesctreeparser.java

?? plugin for eclipse
?? JAVA
?? 第 1 頁 / 共 5 頁
字號:
// $ANTLR : "expandedNesCTreeParser.g" -> "NesCTreeParser.java"$

package isis.anp.nesc;

import antlr.TreeParser;
import antlr.Token;
import antlr.collections.AST;
import antlr.RecognitionException;
import antlr.ANTLRException;
import antlr.NoViableAltException;
import antlr.MismatchedTokenException;
import antlr.SemanticException;
import antlr.collections.impl.BitSet;
import antlr.ASTPair;
import antlr.collections.impl.ASTArray;

import isis.anp.common.TNode;
import antlr.ASTPair;
import antlr.MismatchedTokenException;
import antlr.NoViableAltException;
import antlr.RecognitionException;
import antlr.collections.AST;
import antlr.collections.impl.BitSet;


public class NesCTreeParser extends antlr.TreeParser       implements NesCTreeParserTokenTypes
 {

        int traceDepth = 0;
        public void reportError(RecognitionException ex) {
          if ( ex != null)   {
                System.err.println("ANTLR Tree Parsing RecognitionException Error: " + ex.getClass().getName() + " " + ex );
                ex.printStackTrace(System.err);
          }
        }
        public void reportError(NoViableAltException ex) {
                System.err.println("ANTLR Tree Parsing NoViableAltException Error: " + ex.toString());
                TNode.printTree( ex.node );
                ex.printStackTrace(System.err);
        }
        public void reportError(MismatchedTokenException ex) {
          if ( ex != null)   {
                TNode.printTree( ex.node );
                System.err.println("ANTLR Tree Parsing MismatchedTokenException Error: " + ex );
                ex.printStackTrace(System.err);
          }
        }
        public void reportError(String s) {
                System.err.println("ANTLR Error from String: " + s);
        }
        public void reportWarning(String s) {
                System.err.println("ANTLR Warning from String: " + s);
        }
        protected void match(AST t, int ttype) throws MismatchedTokenException {
                //System.out.println("match("+ttype+"); cursor is "+t);
                super.match(t, ttype);
        }
        public void match(AST t, BitSet b) throws MismatchedTokenException {
                //System.out.println("match("+b+"); cursor is "+t);
                super.match(t, b);
        }
        protected void matchNot(AST t, int ttype) throws MismatchedTokenException {
                //System.out.println("matchNot("+ttype+"); cursor is "+t);
                super.matchNot(t, ttype);
                }
        public void traceIn(String rname, AST t) {
          traceDepth += 1;
          for (int x=0; x<traceDepth; x++) System.out.print(" ");
          super.traceIn(rname, t);   
        }
        public void traceOut(String rname, AST t) {
          for (int x=0; x<traceDepth; x++) System.out.print(" ");
          super.traceOut(rname, t);
          traceDepth -= 1;
        }


public NesCTreeParser() {
	tokenNames = _tokenNames;
}

	public final void translationUnit(AST _t) throws RecognitionException {
		
		TNode translationUnit_AST_in = (_t == ASTNULL) ? null : (TNode)_t;
		returnAST = null;
		ASTPair currentAST = new ASTPair();
		TNode translationUnit_AST = null;
		
		if (_t==null) _t=ASTNULL;
		switch ( _t.getType()) {
		case NIncludeFile:
		{
			includeFile(_t);
			_t = _retTree;
			astFactory.addASTChild(currentAST, returnAST);
			translationUnit_AST = (TNode)currentAST.root;
			break;
		}
		case NModuleFile:
		{
			moduleFile(_t);
			_t = _retTree;
			astFactory.addASTChild(currentAST, returnAST);
			translationUnit_AST = (TNode)currentAST.root;
			break;
		}
		case NInterfaceFile:
		{
			interfaceFile(_t);
			_t = _retTree;
			astFactory.addASTChild(currentAST, returnAST);
			translationUnit_AST = (TNode)currentAST.root;
			break;
		}
		default:
		{
			throw new NoViableAltException(_t);
		}
		}
		returnAST = translationUnit_AST;
		_retTree = _t;
	}
	
	public final void includeFile(AST _t) throws RecognitionException {
		
		TNode includeFile_AST_in = (_t == ASTNULL) ? null : (TNode)_t;
		returnAST = null;
		ASTPair currentAST = new ASTPair();
		TNode includeFile_AST = null;
		
		try {      // for error handling
			AST __t3450 = _t;
			TNode tmp1_AST = null;
			TNode tmp1_AST_in = null;
			tmp1_AST = (TNode)astFactory.create((TNode)_t);
			tmp1_AST_in = (TNode)_t;
			astFactory.addASTChild(currentAST, tmp1_AST);
			ASTPair __currentAST3450 = currentAST.copy();
			currentAST.root = currentAST.child;
			currentAST.child = null;
			match(_t,NIncludeFile);
			_t = _t.getFirstChild();
			{
			if (_t==null) _t=ASTNULL;
			switch ( _t.getType()) {
			case LITERAL_asm:
			case SEMI:
			case NDeclaration:
			case NFunctionDef:
			case NTypeMissing:
			case NText:
			{
				externalList(_t);
				_t = _retTree;
				astFactory.addASTChild(currentAST, returnAST);
				break;
			}
			case 3:
			{
				break;
			}
			default:
			{
				throw new NoViableAltException(_t);
			}
			}
			}
			currentAST = __currentAST3450;
			_t = __t3450;
			_t = _t.getNextSibling();
			includeFile_AST = (TNode)currentAST.root;
		}
		catch (RecognitionException ex) {
			if (inputState.guessing==0) {
				reportError(ex);
				if (_t!=null) {_t = _t.getNextSibling();}
			} else {
			  throw ex;
			}
		}
		returnAST = includeFile_AST;
		_retTree = _t;
	}
	
	public final void moduleFile(AST _t) throws RecognitionException {
		
		TNode moduleFile_AST_in = (_t == ASTNULL) ? null : (TNode)_t;
		returnAST = null;
		ASTPair currentAST = new ASTPair();
		TNode moduleFile_AST = null;
		
		try {      // for error handling
			AST __t3467 = _t;
			TNode tmp2_AST = null;
			TNode tmp2_AST_in = null;
			tmp2_AST = (TNode)astFactory.create((TNode)_t);
			tmp2_AST_in = (TNode)_t;
			astFactory.addASTChild(currentAST, tmp2_AST);
			ASTPair __currentAST3467 = currentAST.copy();
			currentAST.root = currentAST.child;
			currentAST.child = null;
			match(_t,NModuleFile);
			_t = _t.getFirstChild();
			{
			_loop3469:
			do {
				if (_t==null) _t=ASTNULL;
				if ((_t.getType()==NIncludes)) {
					includes(_t);
					_t = _retTree;
					astFactory.addASTChild(currentAST, returnAST);
				}
				else {
					break _loop3469;
				}
				
			} while (true);
			}
			module(_t);
			_t = _retTree;
			astFactory.addASTChild(currentAST, returnAST);
			currentAST = __currentAST3467;
			_t = __t3467;
			_t = _t.getNextSibling();
			moduleFile_AST = (TNode)currentAST.root;
		}
		catch (RecognitionException ex) {
			if (inputState.guessing==0) {
				reportError(ex);
				if (_t!=null) {_t = _t.getNextSibling();}
			} else {
			  throw ex;
			}
		}
		returnAST = moduleFile_AST;
		_retTree = _t;
	}
	
	public final void interfaceFile(AST _t) throws RecognitionException {
		
		TNode interfaceFile_AST_in = (_t == ASTNULL) ? null : (TNode)_t;
		returnAST = null;
		ASTPair currentAST = new ASTPair();
		TNode interfaceFile_AST = null;
		
		try {      // for error handling
			AST __t3453 = _t;
			TNode tmp3_AST = null;
			TNode tmp3_AST_in = null;
			tmp3_AST = (TNode)astFactory.create((TNode)_t);
			tmp3_AST_in = (TNode)_t;
			astFactory.addASTChild(currentAST, tmp3_AST);
			ASTPair __currentAST3453 = currentAST.copy();
			currentAST.root = currentAST.child;
			currentAST.child = null;
			match(_t,NInterfaceFile);
			_t = _t.getFirstChild();
			{
			_loop3455:
			do {
				if (_t==null) _t=ASTNULL;
				if ((_t.getType()==NIncludes)) {
					includes(_t);
					_t = _retTree;
					astFactory.addASTChild(currentAST, returnAST);
				}
				else {
					break _loop3455;
				}
				
			} while (true);
			}
			interfaceDeclaration(_t);
			_t = _retTree;
			astFactory.addASTChild(currentAST, returnAST);
			currentAST = __currentAST3453;
			_t = __t3453;
			_t = _t.getNextSibling();
			interfaceFile_AST = (TNode)currentAST.root;
		}
		catch (RecognitionException ex) {
			if (inputState.guessing==0) {
				reportError(ex);
				if (_t!=null) {_t = _t.getNextSibling();}
			} else {
			  throw ex;
			}
		}
		returnAST = interfaceFile_AST;
		_retTree = _t;
	}
	
	public final void externalList(AST _t) throws RecognitionException {
		
		TNode externalList_AST_in = (_t == ASTNULL) ? null : (TNode)_t;
		returnAST = null;
		ASTPair currentAST = new ASTPair();
		TNode externalList_AST = null;
		
		try {      // for error handling
			{
			int _cnt3494=0;
			_loop3494:
			do {
				if (_t==null) _t=ASTNULL;
				switch ( _t.getType()) {
				case LITERAL_asm:
				case SEMI:
				case NDeclaration:
				case NFunctionDef:
				case NTypeMissing:
				{
					externalDef(_t);
					_t = _retTree;
					astFactory.addASTChild(currentAST, returnAST);
					break;
				}
				case NText:
				{
					textNode(_t);
					_t = _retTree;
					astFactory.addASTChild(currentAST, returnAST);
					break;
				}
				default:
				{
					if ( _cnt3494>=1 ) { break _loop3494; } else {throw new NoViableAltException(_t);}
				}
				}
				_cnt3494++;
			} while (true);
			}
			externalList_AST = (TNode)currentAST.root;
		}
		catch (RecognitionException ex) {
			if (inputState.guessing==0) {
				reportError(ex);
				if (_t!=null) {_t = _t.getNextSibling();}
			} else {
			  throw ex;
			}
		}
		returnAST = externalList_AST;
		_retTree = _t;
	}
	
	public final void includes(AST _t) throws RecognitionException {
		
		TNode includes_AST_in = (_t == ASTNULL) ? null : (TNode)_t;
		returnAST = null;
		ASTPair currentAST = new ASTPair();
		TNode includes_AST = null;
		TNode i = null;
		TNode i_AST = null;
		
		try {      // for error handling
			AST __t3457 = _t;
			i = _t==ASTNULL ? null :(TNode)_t;
			TNode i_AST_in = null;
			i_AST = (TNode)astFactory.create(i);
			astFactory.addASTChild(currentAST, i_AST);
			ASTPair __currentAST3457 = currentAST.copy();
			currentAST.root = currentAST.child;
			currentAST.child = null;
			match(_t,NIncludes);
			_t = _t.getFirstChild();
			includeFileNameList(_t);
			_t = _retTree;
			astFactory.addASTChild(currentAST, returnAST);
			currentAST = __currentAST3457;
			_t = __t3457;
			_t = _t.getNextSibling();
			includes_AST = (TNode)currentAST.root;
		}
		catch (RecognitionException ex) {
			if (inputState.guessing==0) {
				reportError(ex);
				if (_t!=null) {_t = _t.getNextSibling();}
			} else {
			  throw ex;
			}
		}
		returnAST = includes_AST;
		_retTree = _t;
	}
	
	public final void interfaceDeclaration(AST _t) throws RecognitionException {
		
		TNode interfaceDeclaration_AST_in = (_t == ASTNULL) ? null : (TNode)_t;
		returnAST = null;
		ASTPair currentAST = new ASTPair();
		TNode interfaceDeclaration_AST = null;
		TNode lc = null;
		TNode lc_AST = null;
		TNode i = null;
		TNode i_AST = null;
		TNode id = null;
		TNode id_AST = null;
		TNode rc = null;
		TNode rc_AST = null;
		
		try {      // for error handling
			AST __t3465 = _t;
			lc = _t==ASTNULL ? null :(TNode)_t;
			TNode lc_AST_in = null;
			lc_AST = (TNode)astFactory.create(lc);
			astFactory.addASTChild(currentAST, lc_AST);
			ASTPair __currentAST3465 = currentAST.copy();
			currentAST.root = currentAST.child;
			currentAST.child = null;
			match(_t,NInterface);
			_t = _t.getFirstChild();
			i = (TNode)_t;
			TNode i_AST_in = null;
			i_AST = (TNode)astFactory.create(i);
			astFactory.addASTChild(currentAST, i_AST);
			match(_t,LITERAL_interface);
			_t = _t.getNextSibling();
			id = (TNode)_t;
			TNode id_AST_in = null;
			id_AST = (TNode)astFactory.create(id);
			astFactory.addASTChild(currentAST, id_AST);
			match(_t,ID);
			_t = _t.getNextSibling();
			declarationList(_t);
			_t = _retTree;
			astFactory.addASTChild(currentAST, returnAST);
			rc = (TNode)_t;
			TNode rc_AST_in = null;
			rc_AST = (TNode)astFactory.create(rc);
			astFactory.addASTChild(currentAST, rc_AST);
			match(_t,RCURLY);
			_t = _t.getNextSibling();
			currentAST = __currentAST3465;
			_t = __t3465;
			_t = _t.getNextSibling();
			interfaceDeclaration_AST = (TNode)currentAST.root;
		}
		catch (RecognitionException ex) {
			if (inputState.guessing==0) {
				reportError(ex);
				if (_t!=null) {_t = _t.getNextSibling();}
			} else {
			  throw ex;
			}
		}
		returnAST = interfaceDeclaration_AST;
		_retTree = _t;
	}
	
	public final void includeFileNameList(AST _t) throws RecognitionException {
		
		TNode includeFileNameList_AST_in = (_t == ASTNULL) ? null : (TNode)_t;
		returnAST = null;
		ASTPair currentAST = new ASTPair();
		TNode includeFileNameList_AST = null;
		TNode c = null;
		TNode c_AST = null;
		
		try {      // for error handling
			{
			includeFileName(_t);
			_t = _retTree;
			astFactory.addASTChild(currentAST, returnAST);
			{
			_loop3461:
			do {
				if (_t==null) _t=ASTNULL;
				if ((_t.getType()==COMMA)) {
					c = (TNode)_t;
					TNode c_AST_in = null;
					c_AST = (TNode)astFactory.create(c);
					astFactory.addASTChild(currentAST, c_AST);
					match(_t,COMMA);
					_t = _t.getNextSibling();
					includeFileName(_t);
					_t = _retTree;
					astFactory.addASTChild(currentAST, returnAST);
				}
				else {
					break _loop3461;
				}
				
			} while (true);
			}
			}
			includeFileNameList_AST = (TNode)currentAST.root;
		}
		catch (RecognitionException ex) {
			if (inputState.guessing==0) {
				reportError(ex);
				if (_t!=null) {_t = _t.getNextSibling();}
			} else {
			  throw ex;
			}
		}
		returnAST = includeFileNameList_AST;
		_retTree = _t;
	}
	
	public final void includeFileName(AST _t) throws RecognitionException {
		
		TNode includeFileName_AST_in = (_t == ASTNULL) ? null : (TNode)_t;
		returnAST = null;
		ASTPair currentAST = new ASTPair();
		TNode includeFileName_AST = null;
		TNode i = null;
		TNode i_AST = null;
		
		try {      // for error handling

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲成国产人片在线观看| 久久综合99re88久久爱| 亚洲精品综合在线| 欧美视频一区二区三区在线观看| 一区二区三区国产精品| 欧美乱妇15p| 国产一区二区三区不卡在线观看| 久久久久久久久久电影| 成人av在线播放网址| 亚洲精品乱码久久久久久久久 | 国产成人aaa| 亚洲伦理在线免费看| 欧美日韩一区在线| 美腿丝袜在线亚洲一区 | 91麻豆精品国产91久久久久久| 免费观看在线色综合| 国产亚洲福利社区一区| 色呦呦日韩精品| 日韩vs国产vs欧美| 日本一区二区三区四区 | 亚洲地区一二三色| 久久青草欧美一区二区三区| 91亚洲精品乱码久久久久久蜜桃| 亚洲一区二区精品视频| 欧美精品一区二区不卡| 日本黄色一区二区| 麻豆精品一区二区三区| 亚洲欧美在线另类| 日韩欧美国产系列| 91色乱码一区二区三区| 久久99精品久久久久久| 亚洲欧美色综合| 精品乱人伦小说| 91国在线观看| 国产精品性做久久久久久| 亚洲国产成人porn| 国产精品高潮久久久久无| 7777精品久久久大香线蕉| 成人动漫中文字幕| 久久99国产精品免费| 一区二区三区日韩欧美精品| 久久久精品人体av艺术| 欧美一级片在线| 91久久人澡人人添人人爽欧美| 激情成人综合网| 午夜视频在线观看一区二区三区| 久久美女高清视频| 91精品国产福利| 欧美无人高清视频在线观看| 成人av电影免费在线播放| 精品一区二区三区免费播放 | 午夜欧美在线一二页| 中文字幕在线不卡| 久久久久久电影| 欧美大白屁股肥臀xxxxxx| 欧美制服丝袜第一页| 99国产精品视频免费观看| 国产精品白丝jk黑袜喷水| 日韩av不卡在线观看| 亚洲成av人片一区二区| 亚洲欧美国产77777| 中文字幕在线视频一区| 国产午夜亚洲精品不卡| 久久综合狠狠综合久久综合88| 日韩三级在线观看| 日韩一区二区三区视频在线观看| 欧美色图12p| 欧美在线小视频| 91成人看片片| 欧美性大战久久久久久久 | 日本成人中文字幕在线视频| 亚洲综合在线免费观看| 亚洲激情在线播放| 亚洲欧美日韩中文字幕一区二区三区| 国产蜜臀av在线一区二区三区| 精品国产精品一区二区夜夜嗨| 欧美一区二区三区成人| 欧美一二三区精品| 精品剧情在线观看| 久久色.com| 国产日产精品1区| 国产精品久久久久久久久动漫| 中文字幕精品一区| 亚洲乱码国产乱码精品精小说 | 三级成人在线视频| 天天影视网天天综合色在线播放| 午夜精品成人在线视频| 首页亚洲欧美制服丝腿| 日韩在线一区二区| 久久99精品久久只有精品| 激情综合网最新| 丁香桃色午夜亚洲一区二区三区| 国产精品一区三区| 99久久精品国产毛片| 日本二三区不卡| 在线不卡的av| 久久精品在这里| 亚洲视频免费看| 手机精品视频在线观看| 久久99精品视频| 99精品欧美一区二区蜜桃免费| 欧美亚洲高清一区二区三区不卡| 欧美精品tushy高清| 精品国产污网站| 亚洲欧洲日韩一区二区三区| 亚洲愉拍自拍另类高清精品| 美国欧美日韩国产在线播放| 国产91精品精华液一区二区三区| 91丨九色porny丨蝌蚪| 91超碰这里只有精品国产| 精品国产乱码久久久久久久久| 成人欧美一区二区三区小说| 亚洲成人av一区二区三区| 国产一区二区福利视频| 91色porny蝌蚪| 精品福利一二区| 一区二区日韩av| 韩日欧美一区二区三区| 色狠狠桃花综合| www久久久久| 性欧美大战久久久久久久久| 国产一区二区三区高清播放| 欧美三级日韩在线| 国产色一区二区| 天堂资源在线中文精品| 成人激情视频网站| 日韩欧美黄色影院| 亚洲午夜免费电影| 国产成人精品综合在线观看| 欧美酷刑日本凌虐凌虐| 中文字幕亚洲一区二区av在线| 麻豆免费看一区二区三区| 在线观看亚洲精品| 中文字幕二三区不卡| 日本欧美韩国一区三区| 91精品福利在线| 国产精品免费丝袜| 精品无人区卡一卡二卡三乱码免费卡 | av成人免费在线| 久久蜜桃av一区二区天堂| 三级成人在线视频| 欧洲亚洲国产日韩| 自拍偷拍国产精品| 国产福利91精品一区| 欧美成人一级视频| 日韩av高清在线观看| 色婷婷av一区二区三区大白胸| 欧美激情在线观看视频免费| 久久av老司机精品网站导航| 欧美日韩一区三区四区| 亚洲精品videosex极品| 91免费观看在线| 国产精品久久久久久久久久久免费看| 国产在线看一区| 欧美成人综合网站| 久久国产精品无码网站| 538在线一区二区精品国产| 亚洲一区在线视频观看| 欧美中文字幕久久| 亚洲va欧美va天堂v国产综合| 色综合中文综合网| 日本特黄久久久高潮| 欧美日韩的一区二区| 亚洲第一福利视频在线| 欧美丝袜自拍制服另类| 亚洲国产精品久久人人爱| 一本到不卡精品视频在线观看| 国产精品久久久久久亚洲毛片| 成人免费视频视频在线观看免费| 久久品道一品道久久精品| 国产乱色国产精品免费视频| 久久嫩草精品久久久精品| 国产乱人伦精品一区二区在线观看 | 国产欧美一区视频| 成人免费视频网站在线观看| 1000精品久久久久久久久| av亚洲精华国产精华精| 亚洲精品自拍动漫在线| 欧美日韩精品一区二区三区| 日韩精品午夜视频| 欧美sm极限捆绑bd| 国产成人免费网站| 中文字幕亚洲成人| 欧美在线观看一区| 青青草国产精品亚洲专区无| 精品区一区二区| 国产a级毛片一区| 亚洲激情中文1区| 日韩一级高清毛片| 丁香婷婷综合五月| 亚洲影视资源网| 日韩欧美国产系列| 99热这里都是精品| 亚洲一区二区三区爽爽爽爽爽 | 国产欧美日本一区视频| 99精品一区二区| 日韩黄色免费电影| 国产精品视频一二三区| 欧美图区在线视频| 国产一区二区免费在线|