nescemitter.java
来自「plugin for eclipse」· Java 代码 · 共 2,918 行 · 第 1/5 页
JAVA
2,918 行
{
externalDef(_t);
_t = _retTree;
break;
}
case NText:
{
textNode(_t);
_t = _retTree;
break;
}
default:
{
if ( _cnt1095>=1 ) { break _loop1095; } else {throw new NoViableAltException(_t);}
}
}
_cnt1095++;
} while (true);
}
}
catch (RecognitionException ex) {
if (inputState.guessing==0) {
reportError(ex);
if (_t!=null) {_t = _t.getNextSibling();}
} else {
throw ex;
}
}
_retTree = _t;
}
public final void includes(AST _t) throws RecognitionException {
TNode includes_AST_in = (_t == ASTNULL) ? null : (TNode)_t;
TNode i = null;
try { // for error handling
AST __t1058 = _t;
i = _t==ASTNULL ? null :(TNode)_t;
match(_t,NIncludes);
_t = _t.getFirstChild();
if ( inputState.guessing==0 ) {
print( i );
}
includeFileNameList(_t);
_t = _retTree;
if ( inputState.guessing==0 ) {
print( ";" ); newline();
}
_t = __t1058;
_t = _t.getNextSibling();
}
catch (RecognitionException ex) {
if (inputState.guessing==0) {
reportError(ex);
if (_t!=null) {_t = _t.getNextSibling();}
} else {
throw ex;
}
}
_retTree = _t;
}
public final void interfaceDeclaration(AST _t) throws RecognitionException {
TNode interfaceDeclaration_AST_in = (_t == ASTNULL) ? null : (TNode)_t;
TNode lc = null;
TNode i = null;
TNode id = null;
TNode rc = null;
try { // for error handling
AST __t1066 = _t;
lc = _t==ASTNULL ? null :(TNode)_t;
match(_t,NInterface);
_t = _t.getFirstChild();
i = (TNode)_t;
match(_t,LITERAL_interface);
_t = _t.getNextSibling();
if ( inputState.guessing==0 ) {
print( i );
}
id = (TNode)_t;
match(_t,ID);
_t = _t.getNextSibling();
if ( inputState.guessing==0 ) {
print( id );
}
if ( inputState.guessing==0 ) {
print( lc ); newline(); tabs++;
}
declarationList(_t);
_t = _retTree;
rc = (TNode)_t;
match(_t,RCURLY);
_t = _t.getNextSibling();
if ( inputState.guessing==0 ) {
tabs--; print( rc ); newline();
}
_t = __t1066;
_t = _t.getNextSibling();
}
catch (RecognitionException ex) {
if (inputState.guessing==0) {
reportError(ex);
if (_t!=null) {_t = _t.getNextSibling();}
} else {
throw ex;
}
}
_retTree = _t;
}
public final void includeFileNameList(AST _t) throws RecognitionException {
TNode includeFileNameList_AST_in = (_t == ASTNULL) ? null : (TNode)_t;
TNode c = null;
try { // for error handling
{
includeFileName(_t);
_t = _retTree;
{
_loop1062:
do {
if (_t==null) _t=ASTNULL;
if ((_t.getType()==COMMA)) {
c = (TNode)_t;
match(_t,COMMA);
_t = _t.getNextSibling();
if ( inputState.guessing==0 ) {
print( c );
}
includeFileName(_t);
_t = _retTree;
}
else {
break _loop1062;
}
} while (true);
}
}
}
catch (RecognitionException ex) {
if (inputState.guessing==0) {
reportError(ex);
if (_t!=null) {_t = _t.getNextSibling();}
} else {
throw ex;
}
}
_retTree = _t;
}
public final void includeFileName(AST _t) throws RecognitionException {
TNode includeFileName_AST_in = (_t == ASTNULL) ? null : (TNode)_t;
TNode i = null;
try { // for error handling
AST __t1064 = _t;
TNode tmp4_AST_in = (TNode)_t;
match(_t,NIncludeFileName);
_t = _t.getFirstChild();
i = (TNode)_t;
match(_t,ID);
_t = _t.getNextSibling();
if ( inputState.guessing==0 ) {
print( i );
}
_t = __t1064;
_t = _t.getNextSibling();
}
catch (RecognitionException ex) {
if (inputState.guessing==0) {
reportError(ex);
if (_t!=null) {_t = _t.getNextSibling();}
} else {
throw ex;
}
}
_retTree = _t;
}
public final void declarationList(AST _t) throws RecognitionException {
TNode declarationList_AST_in = (_t == ASTNULL) ? null : (TNode)_t;
try { // for error handling
{
int _cnt1232=0;
_loop1232:
do {
if (_t==null) _t=ASTNULL;
if ((_t.getType()==LITERAL___label__)) {
localLabelDecl(_t);
_t = _retTree;
}
else if ((_t.getType()==NDeclaration)) {
declaration(_t);
_t = _retTree;
}
else {
if ( _cnt1232>=1 ) { break _loop1232; } else {throw new NoViableAltException(_t);}
}
_cnt1232++;
} while (true);
}
}
catch (RecognitionException ex) {
if (inputState.guessing==0) {
reportError(ex);
if (_t!=null) {_t = _t.getNextSibling();}
} else {
throw ex;
}
}
_retTree = _t;
}
public final void module(AST _t) throws RecognitionException {
TNode module_AST_in = (_t == ASTNULL) ? null : (TNode)_t;
TNode m = null;
TNode i = null;
try { // for error handling
AST __t1072 = _t;
m = _t==ASTNULL ? null :(TNode)_t;
match(_t,NModule);
_t = _t.getFirstChild();
if ( inputState.guessing==0 ) {
print( m );
}
i = (TNode)_t;
match(_t,ID);
_t = _t.getNextSibling();
if ( inputState.guessing==0 ) {
print( i );
}
interfaceDescription(_t);
_t = _retTree;
moduleImplementation(_t);
_t = _retTree;
_t = __t1072;
_t = _t.getNextSibling();
}
catch (RecognitionException ex) {
if (inputState.guessing==0) {
reportError(ex);
if (_t!=null) {_t = _t.getNextSibling();}
} else {
throw ex;
}
}
_retTree = _t;
}
public final void interfaceDescription(AST _t) throws RecognitionException {
TNode interfaceDescription_AST_in = (_t == ASTNULL) ? null : (TNode)_t;
TNode lc = null;
TNode rc = null;
try { // for error handling
AST __t1074 = _t;
lc = _t==ASTNULL ? null :(TNode)_t;
match(_t,NInterfaceDescription);
_t = _t.getFirstChild();
if ( inputState.guessing==0 ) {
print( lc ); newline(); tabs++;
}
{
_loop1076:
do {
if (_t==null) _t=ASTNULL;
switch ( _t.getType()) {
case NUses:
{
uses(_t);
_t = _retTree;
break;
}
case NProvides:
{
provides(_t);
_t = _retTree;
break;
}
default:
{
break _loop1076;
}
}
} while (true);
}
rc = (TNode)_t;
match(_t,RCURLY);
_t = _t.getNextSibling();
if ( inputState.guessing==0 ) {
tabs--; print( rc ); newline();
}
_t = __t1074;
_t = _t.getNextSibling();
}
catch (RecognitionException ex) {
if (inputState.guessing==0) {
reportError(ex);
if (_t!=null) {_t = _t.getNextSibling();}
} else {
throw ex;
}
}
_retTree = _t;
}
public final void moduleImplementation(AST _t) throws RecognitionException {
TNode moduleImplementation_AST_in = (_t == ASTNULL) ? null : (TNode)_t;
TNode i = null;
TNode lc = null;
TNode rc = null;
try { // for error handling
AST __t1092 = _t;
i = _t==ASTNULL ? null :(TNode)_t;
match(_t,NImplementation);
_t = _t.getFirstChild();
if ( inputState.guessing==0 ) {
print( i );
}
lc = (TNode)_t;
match(_t,LCURLY);
_t = _t.getNextSibling();
if ( inputState.guessing==0 ) {
print( lc ); newline(); tabs++;
}
externalList(_t);
_t = _retTree;
rc = (TNode)_t;
match(_t,RCURLY);
_t = _t.getNextSibling();
if ( inputState.guessing==0 ) {
tabs--; print( rc ); newline();
}
_t = __t1092;
_t = _t.getNextSibling();
}
catch (RecognitionException ex) {
if (inputState.guessing==0) {
reportError(ex);
if (_t!=null) {_t = _t.getNextSibling();}
} else {
throw ex;
}
}
_retTree = _t;
}
public final void uses(AST _t) throws RecognitionException {
TNode uses_AST_in = (_t == ASTNULL) ? null : (TNode)_t;
TNode u = null;
try { // for error handling
AST __t1078 = _t;
u = _t==ASTNULL ? null :(TNode)_t;
match(_t,NUses);
_t = _t.getFirstChild();
if ( inputState.guessing==0 ) {
print( u );
}
interfaceDescriptionItemList(_t);
_t = _retTree;
_t = __t1078;
_t = _t.getNextSibling();
}
catch (RecognitionException ex) {
if (inputState.guessing==0) {
reportError(ex);
if (_t!=null) {_t = _t.getNextSibling();}
} else {
throw ex;
}
}
_retTree = _t;
}
public final void provides(AST _t) throws RecognitionException {
TNode provides_AST_in = (_t == ASTNULL) ? null : (TNode)_t;
TNode p = null;
try { // for error handling
AST __t1080 = _t;
p = _t==ASTNULL ? null :(TNode)_t;
match(_t,NProvides);
_t = _t.getFirstChild();
if ( inputState.guessing==0 ) {
print( p );
}
interfaceDescriptionItemList(_t);
_t = _retTree;
_t = __t1080;
_t = _t.getNextSibling();
}
catch (RecognitionException ex) {
if (inputState.guessing==0) {
reportError(ex);
if (_t!=null) {_t = _t.getNextSibling();}
} else {
throw ex;
}
}
_retTree = _t;
}
public final void interfaceDescriptionItemList(AST _t) throws RecognitionException {
TNode interfaceDescriptionItemList_AST_in = (_t == ASTNULL) ? null : (TNode)_t;
TNode lc = null;
TNode rc = null;
try { // for error handling
if (_t==null) _t=ASTNULL;
switch ( _t.getType()) {
case NDeclaration:
case LITERAL_interface:
{
interfaceDescriptionItem(_t);
_t = _retTree;
break;
}
case LCURLY:
{
{
lc = (TNode)_t;
match(_t,LCURLY);
_t = _t.getNextSibling();
if ( inputState.guessing==0 ) {
print( lc ); newline(); tabs++;
}
{
int _cnt1084=0;
_loop1084:
do {
if (_t==null) _t=ASTNULL;
if ((_t.getType()==NDeclaration||_t.getType()==LITERAL_interface)) {
interfaceDescriptionItem(_t);
_t = _retTree;
}
else {
if ( _cnt1084>=1 ) { break _loop1084; } else {throw new NoViableAltException(_t);}
}
_cnt1084++;
} while (true);
}
rc = (TNode)_t;
match(_t,RCURLY);
_t = _t.getNextSibling();
if ( inputState.guessing==0 ) {
tabs--; print( rc ); newline();
}
}
break;
}
default:
{
throw new NoViableAltException(_t);
}
}
}
catch (RecognitionException ex) {
if (inputState.guessing==0) {
reportError(ex);
if (_t!=null) {_t = _t.getNextSibling();}
} else {
throw ex;
}
}
_retTree = _t;
}
public final void interfaceDescriptionItem(AST _t) throws RecognitionException {
TNode interfaceDescriptionItem_AST_in = (_t == ASTNULL) ? null : (TNode)_t;
TNode i = null;
try { // for error handling
if (_t==null) _t=ASTNULL;
switch ( _t.getType()) {
case NDeclaration:
{
declaration(_t);
_t = _retTree;
break;
}
case LITERAL_interface:
{
i = (TNode)_t;
match(_t,LITERAL_interface);
_t = _t.getNextSibling();
if ( inputState.guessing==0 ) {
print( i );
}
interfaceIdentifier(_t);
_t = _retTree;
{
if (_t==null) _t=ASTNULL;
switch ( _t.getType()) {
case LBRACKET:
{
interfaceParameters(_t);
_t = _retTree;
break;
}
case 3:
case RCURLY:
case NDeclaration:
case LITERAL_interface:
{
break;
}
default:
{
throw new NoViableAltException(_t);
}
}
}
if ( inputState.guessing==0 ) {
print( ";" ); newline();
}
break;
}
default:
{
throw new NoViableAltException(_t);
}
}
}
catch (RecognitionException ex) {
if (inputState.guessing==0) {
reportError(ex);
if (_t!=null) {_t = _t.getNextSibling();}
} else {
throw ex;
}
}
_retTree = _t;
}
public final void declaration(AST _t) throws RecognitionException {
TNode declaration_AST_in = (_t == ASTNULL) ? null : (TNode)_t;
TNode s = null;
try { // for error handling
AST __t1104 = _t;
TNode tmp5_AST_in = (TNode)_t;
match(_t,NDeclaration);
_t = _t.getFirstChild();
declSpecifiers(_t);
_t = _retTree;
{
if (_t==null) _t=ASTNULL;
switch ( _t.getType()) {
case NInitDecl:
{
initDeclList(_t);
_t = _retTree;
break;
}
case SEMI:
{
break;
}
default:
{
throw new NoViableAltException(_t);
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?