nescemitter.java
来自「plugin for eclipse」· Java 代码 · 共 2,918 行 · 第 1/5 页
JAVA
2,918 行
case BOR:
case BXOR:
case BAND:
case EQUAL:
case NOT_EQUAL:
case LT:
case LTE:
case GT:
case GTE:
case LSHIFT:
case RSHIFT:
case PLUS:
case MINUS:
case DIV:
case MOD:
case NCommaExpr:
{
binaryExpr(_t);
_t = _retTree;
break;
}
case QUESTION:
{
conditionalExpr(_t);
_t = _retTree;
break;
}
case NCast:
{
castExpr(_t);
_t = _retTree;
break;
}
case INC:
case DEC:
case LITERAL_sizeof:
case NUnaryExpr:
case LITERAL___alignof:
{
unaryExpr(_t);
_t = _retTree;
break;
}
case NPostfixExpr:
{
postfixExpr(_t);
_t = _retTree;
break;
}
case ID:
case CharLiteral:
case NExpressionGroup:
case NStringSeq:
case Number:
{
primaryExpr(_t);
_t = _retTree;
break;
}
case NEmptyExpression:
{
emptyExpr(_t);
_t = _retTree;
break;
}
case LPAREN:
{
compoundStatementExpr(_t);
_t = _retTree;
break;
}
case NInitializer:
case NLcurlyInitializer:
{
initializer(_t);
_t = _retTree;
break;
}
case NRangeExpr:
{
rangeExpr(_t);
_t = _retTree;
break;
}
case NGnuAsmExpr:
{
gnuAsmExpr(_t);
_t = _retTree;
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 declSpecifiers(AST _t) throws RecognitionException {
TNode declSpecifiers_AST_in = (_t == ASTNULL) ? null : (TNode)_t;
try { // for error handling
{
int _cnt1110=0;
_loop1110:
do {
if (_t==null) _t=ASTNULL;
switch ( _t.getType()) {
case LITERAL_typedef:
case LITERAL_auto:
case LITERAL_register:
case LITERAL_extern:
case LITERAL_static:
case LITERAL_default:
case LITERAL_inline:
case LITERAL_norace:
case LITERAL_async:
case LITERAL_command:
case LITERAL_event:
case LITERAL_task:
{
storageClassSpecifier(_t);
_t = _retTree;
break;
}
case LITERAL_volatile:
case LITERAL_const:
{
typeQualifier(_t);
_t = _retTree;
break;
}
case LITERAL_struct:
case LITERAL_union:
case LITERAL_enum:
case LITERAL_void:
case LITERAL_char:
case LITERAL_short:
case LITERAL_int:
case LITERAL_long:
case LITERAL_float:
case LITERAL_double:
case LITERAL_signed:
case LITERAL_unsigned:
case NTypedefName:
case LITERAL_typeof:
case LITERAL___complex:
{
typeSpecifier(_t);
_t = _retTree;
break;
}
default:
{
if ( _cnt1110>=1 ) { break _loop1110; } else {throw new NoViableAltException(_t);}
}
}
_cnt1110++;
} 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 storageClassSpecifier(AST _t) throws RecognitionException {
TNode storageClassSpecifier_AST_in = (_t == ASTNULL) ? null : (TNode)_t;
TNode a = null;
TNode b = null;
TNode c = null;
TNode d = null;
try { // for error handling
if (_t==null) _t=ASTNULL;
switch ( _t.getType()) {
case LITERAL_auto:
{
a = (TNode)_t;
match(_t,LITERAL_auto);
_t = _t.getNextSibling();
if ( inputState.guessing==0 ) {
print( a );
}
break;
}
case LITERAL_register:
{
b = (TNode)_t;
match(_t,LITERAL_register);
_t = _t.getNextSibling();
if ( inputState.guessing==0 ) {
print( b );
}
break;
}
case LITERAL_typedef:
{
c = (TNode)_t;
match(_t,LITERAL_typedef);
_t = _t.getNextSibling();
if ( inputState.guessing==0 ) {
print( c );
}
break;
}
case LITERAL_norace:
{
d = (TNode)_t;
match(_t,LITERAL_norace);
_t = _t.getNextSibling();
if ( inputState.guessing==0 ) {
print( d );
}
break;
}
case LITERAL_extern:
case LITERAL_static:
case LITERAL_default:
case LITERAL_inline:
case LITERAL_async:
case LITERAL_command:
case LITERAL_event:
case LITERAL_task:
{
functionStorageClassSpecifier(_t);
_t = _retTree;
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 typeQualifier(AST _t) throws RecognitionException {
TNode typeQualifier_AST_in = (_t == ASTNULL) ? null : (TNode)_t;
TNode a = null;
TNode b = null;
try { // for error handling
if (_t==null) _t=ASTNULL;
switch ( _t.getType()) {
case LITERAL_const:
{
a = (TNode)_t;
match(_t,LITERAL_const);
_t = _t.getNextSibling();
if ( inputState.guessing==0 ) {
print( a );
}
break;
}
case LITERAL_volatile:
{
b = (TNode)_t;
match(_t,LITERAL_volatile);
_t = _t.getNextSibling();
if ( inputState.guessing==0 ) {
print( b );
}
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 typeSpecifier(AST _t) throws RecognitionException {
TNode typeSpecifier_AST_in = (_t == ASTNULL) ? null : (TNode)_t;
TNode a = null;
TNode b = null;
TNode c = null;
TNode d = null;
TNode e = null;
TNode f = null;
TNode g = null;
TNode h = null;
TNode i = null;
TNode n = null;
TNode lp = null;
TNode rp = null;
TNode p = null;
try { // for error handling
if (_t==null) _t=ASTNULL;
switch ( _t.getType()) {
case LITERAL_void:
{
a = (TNode)_t;
match(_t,LITERAL_void);
_t = _t.getNextSibling();
if ( inputState.guessing==0 ) {
print( a );
}
break;
}
case LITERAL_char:
{
b = (TNode)_t;
match(_t,LITERAL_char);
_t = _t.getNextSibling();
if ( inputState.guessing==0 ) {
print( b );
}
break;
}
case LITERAL_short:
{
c = (TNode)_t;
match(_t,LITERAL_short);
_t = _t.getNextSibling();
if ( inputState.guessing==0 ) {
print( c );
}
break;
}
case LITERAL_int:
{
d = (TNode)_t;
match(_t,LITERAL_int);
_t = _t.getNextSibling();
if ( inputState.guessing==0 ) {
print( d );
}
break;
}
case LITERAL_long:
{
e = (TNode)_t;
match(_t,LITERAL_long);
_t = _t.getNextSibling();
if ( inputState.guessing==0 ) {
print( e );
}
break;
}
case LITERAL_float:
{
f = (TNode)_t;
match(_t,LITERAL_float);
_t = _t.getNextSibling();
if ( inputState.guessing==0 ) {
print( f );
}
break;
}
case LITERAL_double:
{
g = (TNode)_t;
match(_t,LITERAL_double);
_t = _t.getNextSibling();
if ( inputState.guessing==0 ) {
print( g );
}
break;
}
case LITERAL_signed:
{
h = (TNode)_t;
match(_t,LITERAL_signed);
_t = _t.getNextSibling();
if ( inputState.guessing==0 ) {
print( h );
}
break;
}
case LITERAL_unsigned:
{
i = (TNode)_t;
match(_t,LITERAL_unsigned);
_t = _t.getNextSibling();
if ( inputState.guessing==0 ) {
print( i );
}
break;
}
case LITERAL_struct:
{
structSpecifier(_t);
_t = _retTree;
{
_loop1116:
do {
if (_t==null) _t=ASTNULL;
if ((_t.getType()==NAsmAttribute||_t.getType()==LITERAL___attribute)) {
attributeDecl(_t);
_t = _retTree;
}
else {
break _loop1116;
}
} while (true);
}
break;
}
case LITERAL_union:
{
unionSpecifier(_t);
_t = _retTree;
{
_loop1118:
do {
if (_t==null) _t=ASTNULL;
if ((_t.getType()==NAsmAttribute||_t.getType()==LITERAL___attribute)) {
attributeDecl(_t);
_t = _retTree;
}
else {
break _loop1118;
}
} while (true);
}
break;
}
case LITERAL_enum:
{
enumSpecifier(_t);
_t = _retTree;
break;
}
case NTypedefName:
{
typedefName(_t);
_t = _retTree;
break;
}
case LITERAL_typeof:
{
AST __t1119 = _t;
n = _t==ASTNULL ? null :(TNode)_t;
match(_t,LITERAL_typeof);
_t = _t.getFirstChild();
lp = (TNode)_t;
match(_t,LPAREN);
_t = _t.getNextSibling();
if ( inputState.guessing==0 ) {
print( n ); print( lp );
}
{
if (_t==null) _t=ASTNULL;
switch ( _t.getType()) {
case LITERAL_volatile:
case LITERAL_struct:
case LITERAL_union:
case LITERAL_enum:
case LITERAL_const:
case LITERAL_void:
case LITERAL_char:
case LITERAL_short:
case LITERAL_int:
case LITERAL_long:
case LITERAL_float:
case LITERAL_double:
case LITERAL_signed:
case LITERAL_unsigned:
case NTypedefName:
case LITERAL_typeof:
case LITERAL___complex:
{
typeName(_t);
_t = _retTree;
break;
}
case ID:
case ASSIGN:
case STAR:
case LPAREN:
case DIV_ASSIGN:
case PLUS_ASSIGN:
case MINUS_ASSIGN:
case STAR_ASSIGN:
case MOD_ASSIGN:
case RSHIFT_ASSIGN:
case LSHIFT_ASSIGN:
case BAND_ASSIGN:
case BOR_ASSIGN:
case BXOR_ASSIGN:
case QUESTION:
case LOR:
case LAND:
case BOR:
case BXOR:
case BAND:
case EQUAL:
case NOT_EQUAL:
case LT:
case LTE:
case GT:
case GTE:
case LSHIFT:
case RSHIFT:
case PLUS:
case MINUS:
case DIV:
case MOD:
case INC:
case DEC:
case LITERAL_sizeof:
case CharLiteral:
case NCast:
case NExpressionGroup:
case NInitializer:
case NEmptyExpression:
case NCommaExpr:
case NUnaryExpr:
case NPostfixExpr:
case NRangeExpr:
case NStringSeq:
case NLcurlyInitializer:
case NGnuAsmExpr:
case Number:
case LITERAL___alignof:
{
expr(_t);
_t = _retTree;
break;
}
default:
{
throw new NoViableAltException(_t);
}
}
}
rp = (TNode)_t;
match(_t,RPAREN);
_t = _t.getNextSibling();
if ( inputState.guessing==0 ) {
print( rp );
}
_t = __t1119;
_t = _t.getNextSibling();
break;
}
case LITERAL___complex:
{
p = (TNode)_t;
match(_t,LITERAL___complex);
_t = _t.getNextSibling();
if ( inputState.guessing==0 ) {
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?