use of antlr.NoViableAltException in project cxf by apache.
the class IDLParser method home_export.
public final void home_export() throws RecognitionException, TokenStreamException {
returnAST = null;
ASTPair currentAST = new ASTPair();
AST home_export_AST = null;
try {
// for error handling
{
switch(LA(1)) {
case SCOPEOP:
case IDENT:
case LITERAL_const:
case LITERAL_typedef:
case LITERAL_native:
case LITERAL_float:
case LITERAL_double:
case LITERAL_long:
case LITERAL_short:
case LITERAL_unsigned:
case LITERAL_char:
case LITERAL_wchar:
case LITERAL_boolean:
case LITERAL_octet:
case LITERAL_any:
case LITERAL_Object:
case LITERAL_struct:
case LITERAL_union:
case LITERAL_enum:
case LITERAL_string:
case LITERAL_wstring:
case LITERAL_exception:
case LITERAL_oneway:
case LITERAL_void:
case LITERAL_ValueBase:
case LITERAL_typeid:
case LITERAL_typeprefix:
case LITERAL_readonly:
case LITERAL_attribute:
{
export();
astFactory.addASTChild(currentAST, returnAST);
break;
}
case LITERAL_factory:
{
factory_dcl();
astFactory.addASTChild(currentAST, returnAST);
match(SEMI);
break;
}
case LITERAL_finder:
{
finder_dcl();
astFactory.addASTChild(currentAST, returnAST);
match(SEMI);
break;
}
default:
{
throw new NoViableAltException(LT(1), getFilename());
}
}
}
home_export_AST = (AST) currentAST.root;
} catch (RecognitionException ex) {
if (inputState.guessing == 0) {
reportError(ex);
consume();
consumeUntil(_tokenSet_70);
} else {
throw ex;
}
}
returnAST = home_export_AST;
}
use of antlr.NoViableAltException in project cxf by apache.
the class IDLParser method param_dcl.
public final void param_dcl() throws RecognitionException, TokenStreamException {
returnAST = null;
ASTPair currentAST = new ASTPair();
AST param_dcl_AST = null;
try {
// for error handling
{
switch(LA(1)) {
case LITERAL_in:
{
AST tmp174_AST = null;
tmp174_AST = astFactory.create(LT(1));
astFactory.makeASTRoot(currentAST, tmp174_AST);
match(LITERAL_in);
break;
}
case LITERAL_out:
{
AST tmp175_AST = null;
tmp175_AST = astFactory.create(LT(1));
astFactory.makeASTRoot(currentAST, tmp175_AST);
match(LITERAL_out);
break;
}
case LITERAL_inout:
{
AST tmp176_AST = null;
tmp176_AST = astFactory.create(LT(1));
astFactory.makeASTRoot(currentAST, tmp176_AST);
match(LITERAL_inout);
break;
}
default:
{
throw new NoViableAltException(LT(1), getFilename());
}
}
}
param_type_spec();
astFactory.addASTChild(currentAST, returnAST);
simple_declarator();
astFactory.addASTChild(currentAST, returnAST);
param_dcl_AST = (AST) currentAST.root;
} catch (RecognitionException ex) {
if (inputState.guessing == 0) {
reportError(ex);
consume();
consumeUntil(_tokenSet_29);
} else {
throw ex;
}
}
returnAST = param_dcl_AST;
}
use of antlr.NoViableAltException in project cxf by apache.
the class IDLParser method unsigned_int.
public final void unsigned_int() throws RecognitionException, TokenStreamException {
returnAST = null;
ASTPair currentAST = new ASTPair();
AST unsigned_int_AST = null;
try {
// for error handling
if ((LA(1) == LITERAL_unsigned) && (LA(2) == LITERAL_short)) {
unsigned_short_int();
astFactory.addASTChild(currentAST, returnAST);
unsigned_int_AST = (AST) currentAST.root;
} else if ((LA(1) == LITERAL_unsigned) && (LA(2) == LITERAL_long) && (_tokenSet_35.member(LA(3)))) {
unsigned_long_int();
astFactory.addASTChild(currentAST, returnAST);
unsigned_int_AST = (AST) currentAST.root;
} else if ((LA(1) == LITERAL_unsigned) && (LA(2) == LITERAL_long) && (LA(3) == LITERAL_long)) {
unsigned_longlong_int();
astFactory.addASTChild(currentAST, returnAST);
unsigned_int_AST = (AST) currentAST.root;
} else {
throw new NoViableAltException(LT(1), getFilename());
}
} catch (RecognitionException ex) {
if (inputState.guessing == 0) {
reportError(ex);
consume();
consumeUntil(_tokenSet_35);
} else {
throw ex;
}
}
returnAST = unsigned_int_AST;
}
use of antlr.NoViableAltException in project cxf by apache.
the class IDLParser method event_abs.
public final void event_abs() throws RecognitionException, TokenStreamException {
returnAST = null;
ASTPair currentAST = new ASTPair();
AST event_abs_AST = null;
try {
// for error handling
AST tmp217_AST = null;
tmp217_AST = astFactory.create(LT(1));
astFactory.makeASTRoot(currentAST, tmp217_AST);
match(LITERAL_abstract);
event_header();
astFactory.addASTChild(currentAST, returnAST);
{
switch(LA(1)) {
case LCURLY:
case COLON:
case LITERAL_supports:
{
event_abs_dcl();
astFactory.addASTChild(currentAST, returnAST);
break;
}
case SEMI:
{
break;
}
default:
{
throw new NoViableAltException(LT(1), getFilename());
}
}
}
event_abs_AST = (AST) currentAST.root;
} catch (RecognitionException ex) {
if (inputState.guessing == 0) {
reportError(ex);
consume();
consumeUntil(_tokenSet_10);
} else {
throw ex;
}
}
returnAST = event_abs_AST;
}
use of antlr.NoViableAltException in project cxf by apache.
the class IDLParser method boolean_literal.
public final void boolean_literal() throws RecognitionException, TokenStreamException {
returnAST = null;
ASTPair currentAST = new ASTPair();
AST boolean_literal_AST = null;
try {
// for error handling
switch(LA(1)) {
case LITERAL_TRUE:
{
AST tmp115_AST = null;
tmp115_AST = astFactory.create(LT(1));
astFactory.addASTChild(currentAST, tmp115_AST);
match(LITERAL_TRUE);
boolean_literal_AST = (AST) currentAST.root;
break;
}
case LITERAL_FALSE:
{
AST tmp116_AST = null;
tmp116_AST = astFactory.create(LT(1));
astFactory.addASTChild(currentAST, tmp116_AST);
match(LITERAL_FALSE);
boolean_literal_AST = (AST) currentAST.root;
break;
}
default:
{
throw new NoViableAltException(LT(1), getFilename());
}
}
} catch (RecognitionException ex) {
if (inputState.guessing == 0) {
reportError(ex);
consume();
consumeUntil(_tokenSet_42);
} else {
throw ex;
}
}
returnAST = boolean_literal_AST;
}
Aggregations