📄 asnparser.java
字号:
{if (true) throw (Error)jjte000;} } finally { if (jjtc000) { jjtree.closeNodeScope(jjtn000, true); } } } final public void SymbolsFromModuleList() throws ParseException { /*@bgen(jjtree) SymbolsFromModuleList */ ASTSymbolsFromModuleList jjtn000 = new ASTSymbolsFromModuleList(this, JJTSYMBOLSFROMMODULELIST); boolean jjtc000 = true; jjtree.openNodeScope(jjtn000); try { SymbolsFromModule(); label_3: while (true) { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case OBJECTTYPE_TKN: case TC_TKN: case LCASEFIRST_IDENT_TKN: case UCASEFIRST_IDENT_TKN: ; break; default: jj_la1[10] = jj_gen; break label_3; } SymbolsFromModule(); } } catch (Throwable jjte000) { if (jjtc000) { jjtree.clearNodeScope(jjtn000); jjtc000 = false; } else { jjtree.popNode(); } if (jjte000 instanceof RuntimeException) { {if (true) throw (RuntimeException)jjte000;} } if (jjte000 instanceof ParseException) { {if (true) throw (ParseException)jjte000;} } {if (true) throw (Error)jjte000;} } finally { if (jjtc000) { jjtree.closeNodeScope(jjtn000, true); } } } final public void SymbolsFromModule() throws ParseException { /*@bgen(jjtree) SymbolsFromModule */ ASTSymbolsFromModule jjtn000 = new ASTSymbolsFromModule(this, JJTSYMBOLSFROMMODULE); boolean jjtc000 = true; jjtree.openNodeScope(jjtn000);String module; try { SymbolList(); jj_consume_token(FROM_TKN); ModuleIdentifier(); } catch (Throwable jjte000) { if (jjtc000) { jjtree.clearNodeScope(jjtn000); jjtc000 = false; } else { jjtree.popNode(); } if (jjte000 instanceof RuntimeException) { {if (true) throw (RuntimeException)jjte000;} } if (jjte000 instanceof ParseException) { {if (true) throw (ParseException)jjte000;} } {if (true) throw (Error)jjte000;} } finally { if (jjtc000) { jjtree.closeNodeScope(jjtn000, true); } } } final public void SymbolList() throws ParseException { /*@bgen(jjtree) SymbolList */ ASTSymbolList jjtn000 = new ASTSymbolList(this, JJTSYMBOLLIST); boolean jjtc000 = true; jjtree.openNodeScope(jjtn000); try { Symbol(); label_4: while (true) { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case COMMA_TKN: ; break; default: jj_la1[11] = jj_gen; break label_4; } jj_consume_token(COMMA_TKN); Symbol(); } } catch (Throwable jjte000) { if (jjtc000) { jjtree.clearNodeScope(jjtn000); jjtc000 = false; } else { jjtree.popNode(); } if (jjte000 instanceof RuntimeException) { {if (true) throw (RuntimeException)jjte000;} } if (jjte000 instanceof ParseException) { {if (true) throw (ParseException)jjte000;} } {if (true) throw (Error)jjte000;} } finally { if (jjtc000) { jjtree.closeNodeScope(jjtn000, true); } } } final public void Symbol() throws ParseException { /*@bgen(jjtree) Symbol */ ASTSymbol jjtn000 = new ASTSymbol(this, JJTSYMBOL); boolean jjtc000 = true; jjtree.openNodeScope(jjtn000); try { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case UCASEFIRST_IDENT_TKN: typereference(); jjtree.closeNodeScope(jjtn000, true); jjtc000 = false; jjtn000.which = 1; break; case LCASEFIRST_IDENT_TKN: identifier(); jjtree.closeNodeScope(jjtn000, true); jjtc000 = false; jjtn000.which = 2; break; case OBJECTTYPE_TKN: case TC_TKN: DefinedMacroName(); jjtree.closeNodeScope(jjtn000, true); jjtc000 = false; jjtn000.which = 3; break; default: jj_la1[12] = jj_gen; jj_consume_token(-1); throw new ParseException(); } } catch (Throwable jjte000) { if (jjtc000) { jjtree.clearNodeScope(jjtn000); jjtc000 = false; } else { jjtree.popNode(); } if (jjte000 instanceof RuntimeException) { {if (true) throw (RuntimeException)jjte000;} } if (jjte000 instanceof ParseException) { {if (true) throw (ParseException)jjte000;} } {if (true) throw (Error)jjte000;} } finally { if (jjtc000) { jjtree.closeNodeScope(jjtn000, true); } } } final public void AssignmentList() throws ParseException { /*@bgen(jjtree) AssignmentList */ ASTAssignmentList jjtn000 = new ASTAssignmentList(this, JJTASSIGNMENTLIST); boolean jjtc000 = true; jjtree.openNodeScope(jjtn000); try { Assignment(); switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case SEMI_COLON_TKN: jj_consume_token(SEMI_COLON_TKN); break; default: jj_la1[13] = jj_gen; ; } label_5: while (true) { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case OBJECTTYPE_TKN: case TC_TKN: case LCASEFIRST_IDENT_TKN: case UCASEFIRST_IDENT_TKN: ; break; default: jj_la1[14] = jj_gen; break label_5; } Assignment(); switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case SEMI_COLON_TKN: jj_consume_token(SEMI_COLON_TKN); break; default: jj_la1[15] = jj_gen; ; } } } catch (Throwable jjte000) { if (jjtc000) { jjtree.clearNodeScope(jjtn000); jjtc000 = false; } else { jjtree.popNode(); } if (jjte000 instanceof RuntimeException) { {if (true) throw (RuntimeException)jjte000;} } if (jjte000 instanceof ParseException) { {if (true) throw (ParseException)jjte000;} } {if (true) throw (Error)jjte000;} } finally { if (jjtc000) { jjtree.closeNodeScope(jjtn000, true); } } } final public void Assignment() throws ParseException { /*@bgen(jjtree) Assignment */ ASTAssignment jjtn000 = new ASTAssignment(this, JJTASSIGNMENT); boolean jjtc000 = true; jjtree.openNodeScope(jjtn000); try { if (jj_2_1(2)) { MacroDefinition(); } else { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case UCASEFIRST_IDENT_TKN: TypeAssignment(); break; case LCASEFIRST_IDENT_TKN: ValueAssignment(); break; default: jj_la1[16] = jj_gen; jj_consume_token(-1); throw new ParseException(); } } } catch (Throwable jjte000) { if (jjtc000) { jjtree.clearNodeScope(jjtn000); jjtc000 = false; } else { jjtree.popNode(); } if (jjte000 instanceof RuntimeException) { {if (true) throw (RuntimeException)jjte000;} } if (jjte000 instanceof ParseException) { {if (true) throw (ParseException)jjte000;} } {if (true) throw (Error)jjte000;} } finally { if (jjtc000) { jjtree.closeNodeScope(jjtn000, true); } } } final public void MacroDefinition() throws ParseException { /*@bgen(jjtree) MacroDefinition */ ASTMacroDefinition jjtn000 = new ASTMacroDefinition(this, JJTMACRODEFINITION); boolean jjtc000 = true; jjtree.openNodeScope(jjtn000); try { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case TC_TKN: jj_consume_token(TC_TKN); break; case OBJECTTYPE_TKN: jj_consume_token(OBJECTTYPE_TKN); break; case UCASEFIRST_IDENT_TKN: typereference(); break; default: jj_la1[17] = jj_gen; jj_consume_token(-1); throw new ParseException(); } jj_consume_token(MACRO_TKN); jj_consume_token(GETS_TKN); jj_consume_token(BEGIN_TKN); MacroBody(); jj_consume_token(END_TKN); } catch (Throwable jjte000) { if (jjtc000) { jjtree.clearNodeScope(jjtn000); jjtc000 = false; } else { jjtree.popNode(); } if (jjte000 instanceof RuntimeException) { {if (true) throw (RuntimeException)jjte000;} } if (jjte000 instanceof ParseException) { {if (true) throw (ParseException)jjte000;} } {if (true) throw (Error)jjte000;} } finally { if (jjtc000) { jjtree.closeNodeScope(jjtn000, true); } } } void MacroBody() throws ParseException { /*@bgen(jjtree) MacroBody */ASTMacroBody jjtn000 = new ASTMacroBody(this, JJTMACROBODY);boolean jjtc000 = true;jjtree.openNodeScope(jjtn000);try {Token tok; int nesting = 1; while (true) { tok = getToken(1); if (tok.kind == END_TKN) { break; } tok = getNextToken(); }/*@bgen(jjtree)*/} finally { if (jjtc000) { jjtree.closeNodeScope(jjtn000, true); }} } final public void MacroReference() throws ParseException { /*@bgen(jjtree) MacroReference */ ASTMacroReference jjtn000 = new ASTMacroReference(this, JJTMACROREFERENCE); boolean jjtc000 = true; jjtree.openNodeScope(jjtn000); try { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case UCASEFIRST_IDENT_TKN: typereference(); break; case OBJECTTYPE_TKN: case TC_TKN: DefinedMacroName(); break; default: jj_la1[18] = jj_gen; jj_consume_token(-1); throw new ParseException(); } } catch (Throwable jjte000) { if (jjtc000) { jjtree.clearNodeScope(jjtn000); jjtc000 = false; } else { jjtree.popNode(); } if (jjte000 instanceof RuntimeException) { {if (true) throw (RuntimeException)jjte000;} } if (jjte000 instanceof ParseException) { {if (true) throw (ParseException)jjte000;} } {if (true) throw (Error)jjte000;} } finally { if (jjtc000) { jjtree.closeNodeScope(jjtn000, true); } } } final public void TypeAssignment() throws ParseException { /*@bgen(jjtree) TypeAssignment */ ASTTypeAssignment jjtn000 = new ASTTypeAssignment(this, JJTTYPEASSIGNMENT); boolean jjtc000 = true; jjtree.openNodeScope(jjtn000); try { typereference(); jj_consume_token(GETS_TKN); GlobalType(); } catch (Throwable jjte000) { if (jjtc000) { jjtree.clearNodeScope(jjtn000); jjtc000 = false; } else { jjtree.popNode(); } if (jjte000 instanceof RuntimeException) { {if (true) throw (RuntimeException)jjte000;} } if (jjte000 instanceof ParseException) { {if (true) throw (ParseException)jjte000;} } {if (true) throw (Error)jjte000;} } finally { if (jjtc000) { jjtree.closeNodeScope(jjtn000, true); } } } final public void GlobalType() throws ParseException { /*@bgen(jjtree) GlobalType */ ASTGlobalType jjtn000 = new ASTGlobalType(this, JJTGLOBALTYPE); boolean jjtc000 = true; jjtree.openNodeScope(jjtn000); try { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case OBJECT_IDENTIFIER_TKN: case LEFTBRACKET_TKN: case BOOLEAN_TKN: case INTEGER_TKN: case BIT_TKN: case OCTET_TKN: case NULL_TKN: case SEQUENCE_TKN: case SET_TKN: case CHOICE_TKN: case ANY_TKN: case ENUMERATED_TKN: case REAL_TKN: case LCASEFIRST_IDENT_TKN: case UCASEFIRST_IDENT_TKN: Type(); jjtree.closeNodeScope(jjtn000, true); jjtc000 = false; jjtn000.which = 1; break; case OBJECTTYPE_TKN: case TC_TKN: DefinedMacroType(); jjtree.closeNodeScope(jjtn000, true); jjtc000 = false; jjtn000.which = 2; break; default: jj_la1[19] = jj_gen; jj_consume_token(-1); throw new ParseException(); } } catch (Throwable jjte000) { if (jjtc000) { jjtree.clearNodeScope(jjtn000); jjtc000 = false; } else { jjtree.popNode(); }
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -