use of antlr.RecognitionException in project cxf by apache.
the class IDLParser method value_value_inheritance_spec.
public final void value_value_inheritance_spec() throws RecognitionException, TokenStreamException {
returnAST = null;
ASTPair currentAST = new ASTPair();
AST value_value_inheritance_spec_AST = null;
try {
// for error handling
AST tmp59_AST = null;
tmp59_AST = astFactory.create(LT(1));
astFactory.makeASTRoot(currentAST, tmp59_AST);
match(COLON);
{
switch(LA(1)) {
case LITERAL_truncatable:
{
AST tmp60_AST = null;
tmp60_AST = astFactory.create(LT(1));
astFactory.addASTChild(currentAST, tmp60_AST);
match(LITERAL_truncatable);
break;
}
case SCOPEOP:
case IDENT:
{
break;
}
default:
{
throw new NoViableAltException(LT(1), getFilename());
}
}
}
value_name();
astFactory.addASTChild(currentAST, returnAST);
{
_loop63: do {
if ((LA(1) == COMMA)) {
match(COMMA);
value_name();
astFactory.addASTChild(currentAST, returnAST);
} else {
break _loop63;
}
} while (true);
}
value_value_inheritance_spec_AST = (AST) currentAST.root;
} catch (RecognitionException ex) {
if (inputState.guessing == 0) {
reportError(ex);
consume();
consumeUntil(_tokenSet_25);
} else {
throw ex;
}
}
returnAST = value_value_inheritance_spec_AST;
}
use of antlr.RecognitionException in project cxf by apache.
the class IDLParser method char_type.
public final void char_type() throws RecognitionException, TokenStreamException {
returnAST = null;
ASTPair currentAST = new ASTPair();
AST char_type_AST = null;
try {
// for error handling
AST tmp77_AST = null;
tmp77_AST = astFactory.create(LT(1));
astFactory.addASTChild(currentAST, tmp77_AST);
match(LITERAL_char);
char_type_AST = (AST) currentAST.root;
} catch (RecognitionException ex) {
if (inputState.guessing == 0) {
reportError(ex);
consume();
consumeUntil(_tokenSet_35);
} else {
throw ex;
}
}
returnAST = char_type_AST;
}
use of antlr.RecognitionException in project cxf by apache.
the class IDLParser method wide_char_type.
public final void wide_char_type() throws RecognitionException, TokenStreamException {
returnAST = null;
ASTPair currentAST = new ASTPair();
AST wide_char_type_AST = null;
try {
// for error handling
AST tmp78_AST = null;
tmp78_AST = astFactory.create(LT(1));
astFactory.addASTChild(currentAST, tmp78_AST);
match(LITERAL_wchar);
wide_char_type_AST = (AST) currentAST.root;
} catch (RecognitionException ex) {
if (inputState.guessing == 0) {
reportError(ex);
consume();
consumeUntil(_tokenSet_36);
} else {
throw ex;
}
}
returnAST = wide_char_type_AST;
}
use of antlr.RecognitionException in project cxf by apache.
the class IDLParser method constr_type_spec.
public final void constr_type_spec() throws RecognitionException, TokenStreamException {
returnAST = null;
ASTPair currentAST = new ASTPair();
AST constr_type_spec_AST = null;
try {
// for error handling
switch(LA(1)) {
case LITERAL_struct:
{
struct_type();
astFactory.addASTChild(currentAST, returnAST);
constr_type_spec_AST = (AST) currentAST.root;
break;
}
case LITERAL_union:
{
union_type();
astFactory.addASTChild(currentAST, returnAST);
constr_type_spec_AST = (AST) currentAST.root;
break;
}
case LITERAL_enum:
{
enum_type();
astFactory.addASTChild(currentAST, returnAST);
constr_type_spec_AST = (AST) currentAST.root;
break;
}
default:
{
throw new NoViableAltException(LT(1), getFilename());
}
}
} catch (RecognitionException ex) {
if (inputState.guessing == 0) {
reportError(ex);
consume();
consumeUntil(_tokenSet_23);
} else {
throw ex;
}
}
returnAST = constr_type_spec_AST;
}
use of antlr.RecognitionException in project cxf by apache.
the class IDLParser method imported_scope.
public final void imported_scope() throws RecognitionException, TokenStreamException {
returnAST = null;
ASTPair currentAST = new ASTPair();
AST imported_scope_AST = null;
try {
// for error handling
switch(LA(1)) {
case SCOPEOP:
case IDENT:
{
scoped_name();
astFactory.addASTChild(currentAST, returnAST);
imported_scope_AST = (AST) currentAST.root;
break;
}
case STRING_LITERAL:
{
string_literal();
astFactory.addASTChild(currentAST, returnAST);
imported_scope_AST = (AST) currentAST.root;
break;
}
default:
{
throw new NoViableAltException(LT(1), getFilename());
}
}
} catch (RecognitionException ex) {
if (inputState.guessing == 0) {
reportError(ex);
consume();
consumeUntil(_tokenSet_10);
} else {
throw ex;
}
}
returnAST = imported_scope_AST;
}
Aggregations