use of antlr.RecognitionException in project cxf by apache.
the class IDLParser method op_type_spec.
public final void op_type_spec() throws RecognitionException, TokenStreamException {
returnAST = null;
ASTPair currentAST = new ASTPair();
AST op_type_spec_AST = null;
try {
// for error handling
switch(LA(1)) {
case SCOPEOP:
case IDENT:
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_string:
case LITERAL_wstring:
case LITERAL_ValueBase:
{
param_type_spec();
astFactory.addASTChild(currentAST, returnAST);
op_type_spec_AST = (AST) currentAST.root;
break;
}
case LITERAL_void:
{
AST tmp167_AST = null;
tmp167_AST = astFactory.create(LT(1));
astFactory.addASTChild(currentAST, tmp167_AST);
match(LITERAL_void);
op_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_31);
} else {
throw ex;
}
}
returnAST = op_type_spec_AST;
}
use of antlr.RecognitionException in project cxf by apache.
the class IDLParser method value_element.
public final void value_element() throws RecognitionException, TokenStreamException {
returnAST = null;
ASTPair currentAST = new ASTPair();
AST value_element_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_public:
case LITERAL_private:
{
state_member();
astFactory.addASTChild(currentAST, returnAST);
break;
}
case LITERAL_factory:
{
init_dcl();
astFactory.addASTChild(currentAST, returnAST);
break;
}
default:
{
throw new NoViableAltException(LT(1), getFilename());
}
}
}
value_element_AST = (AST) currentAST.root;
} catch (RecognitionException ex) {
if (inputState.guessing == 0) {
reportError(ex);
consume();
consumeUntil(_tokenSet_24);
} else {
throw ex;
}
}
returnAST = value_element_AST;
}
use of antlr.RecognitionException in project cxf by apache.
the class IDLParser method init_param_attribute.
public final void init_param_attribute() throws RecognitionException, TokenStreamException {
returnAST = null;
ASTPair currentAST = new ASTPair();
AST init_param_attribute_AST = null;
try {
// for error handling
AST tmp76_AST = null;
tmp76_AST = astFactory.create(LT(1));
astFactory.addASTChild(currentAST, tmp76_AST);
match(LITERAL_in);
init_param_attribute_AST = (AST) currentAST.root;
} catch (RecognitionException ex) {
if (inputState.guessing == 0) {
reportError(ex);
consume();
consumeUntil(_tokenSet_30);
} else {
throw ex;
}
}
returnAST = init_param_attribute_AST;
}
use of antlr.RecognitionException in project cxf by apache.
the class IDLParser method supported_interface_spec.
public final void supported_interface_spec() throws RecognitionException, TokenStreamException {
returnAST = null;
ASTPair currentAST = new ASTPair();
AST supported_interface_spec_AST = null;
try {
// for error handling
AST tmp188_AST = null;
tmp188_AST = astFactory.create(LT(1));
astFactory.makeASTRoot(currentAST, tmp188_AST);
match(LITERAL_supports);
scoped_name();
astFactory.addASTChild(currentAST, returnAST);
{
_loop237: do {
if ((LA(1) == COMMA)) {
match(COMMA);
scoped_name();
astFactory.addASTChild(currentAST, returnAST);
} else {
break _loop237;
}
} while (true);
}
supported_interface_spec_AST = (AST) currentAST.root;
} catch (RecognitionException ex) {
if (inputState.guessing == 0) {
reportError(ex);
consume();
consumeUntil(_tokenSet_65);
} else {
throw ex;
}
}
returnAST = supported_interface_spec_AST;
}
use of antlr.RecognitionException in project cxf by apache.
the class IDLParser method const_exp.
public final void const_exp() throws RecognitionException, TokenStreamException {
returnAST = null;
ASTPair currentAST = new ASTPair();
AST const_exp_AST = null;
try {
// for error handling
or_expr();
astFactory.addASTChild(currentAST, returnAST);
const_exp_AST = (AST) currentAST.root;
} catch (RecognitionException ex) {
if (inputState.guessing == 0) {
reportError(ex);
consume();
consumeUntil(_tokenSet_34);
} else {
throw ex;
}
}
returnAST = const_exp_AST;
}
Aggregations