use of antlr.NoViableAltException in project cxf by apache.
the class IDLParser method shift_expr.
public final void shift_expr() throws RecognitionException, TokenStreamException {
returnAST = null;
ASTPair currentAST = new ASTPair();
AST shift_expr_AST = null;
try {
// for error handling
add_expr();
astFactory.addASTChild(currentAST, returnAST);
{
_loop97: do {
if ((LA(1) == LSHIFT || LA(1) == RSHIFT)) {
{
switch(LA(1)) {
case LSHIFT:
{
AST tmp95_AST = null;
tmp95_AST = astFactory.create(LT(1));
astFactory.makeASTRoot(currentAST, tmp95_AST);
match(LSHIFT);
break;
}
case RSHIFT:
{
AST tmp96_AST = null;
tmp96_AST = astFactory.create(LT(1));
astFactory.makeASTRoot(currentAST, tmp96_AST);
match(RSHIFT);
break;
}
default:
{
throw new NoViableAltException(LT(1), getFilename());
}
}
}
add_expr();
astFactory.addASTChild(currentAST, returnAST);
} else {
break _loop97;
}
} while (true);
}
shift_expr_AST = (AST) currentAST.root;
} catch (RecognitionException ex) {
if (inputState.guessing == 0) {
reportError(ex);
consume();
consumeUntil(_tokenSet_39);
} else {
throw ex;
}
}
returnAST = shift_expr_AST;
}
use of antlr.NoViableAltException in project cxf by apache.
the class IDLParser method state_member.
public final void state_member() throws RecognitionException, TokenStreamException {
returnAST = null;
ASTPair currentAST = new ASTPair();
AST state_member_AST = null;
try {
// for error handling
{
switch(LA(1)) {
case LITERAL_public:
{
AST tmp64_AST = null;
tmp64_AST = astFactory.create(LT(1));
astFactory.addASTChild(currentAST, tmp64_AST);
match(LITERAL_public);
break;
}
case LITERAL_private:
{
AST tmp65_AST = null;
tmp65_AST = astFactory.create(LT(1));
astFactory.addASTChild(currentAST, tmp65_AST);
match(LITERAL_private);
break;
}
default:
{
throw new NoViableAltException(LT(1), getFilename());
}
}
}
type_spec();
astFactory.addASTChild(currentAST, returnAST);
declarators();
astFactory.addASTChild(currentAST, returnAST);
match(SEMI);
state_member_AST = (AST) currentAST.root;
} catch (RecognitionException ex) {
if (inputState.guessing == 0) {
reportError(ex);
consume();
consumeUntil(_tokenSet_24);
} else {
throw ex;
}
}
returnAST = state_member_AST;
}
use of antlr.NoViableAltException in project cxf by apache.
the class IDLParser method param_type_spec.
public final void param_type_spec() throws RecognitionException, TokenStreamException {
returnAST = null;
ASTPair currentAST = new ASTPair();
AST param_type_spec_AST = null;
try {
// for error handling
switch(LA(1)) {
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_ValueBase:
{
base_type_spec();
astFactory.addASTChild(currentAST, returnAST);
param_type_spec_AST = (AST) currentAST.root;
break;
}
case LITERAL_string:
{
string_type();
astFactory.addASTChild(currentAST, returnAST);
param_type_spec_AST = (AST) currentAST.root;
break;
}
case LITERAL_wstring:
{
wide_string_type();
astFactory.addASTChild(currentAST, returnAST);
param_type_spec_AST = (AST) currentAST.root;
break;
}
case SCOPEOP:
case IDENT:
{
scoped_name();
astFactory.addASTChild(currentAST, returnAST);
param_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 = param_type_spec_AST;
}
use of antlr.NoViableAltException 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.NoViableAltException in project cxf by apache.
the class IDLParser method finder_dcl.
public final void finder_dcl() throws RecognitionException, TokenStreamException {
returnAST = null;
ASTPair currentAST = new ASTPair();
AST finder_dcl_AST = null;
try {
// for error handling
AST tmp214_AST = null;
tmp214_AST = astFactory.create(LT(1));
astFactory.makeASTRoot(currentAST, tmp214_AST);
match(LITERAL_finder);
identifier();
astFactory.addASTChild(currentAST, returnAST);
match(LPAREN);
init_param_decls();
astFactory.addASTChild(currentAST, returnAST);
match(RPAREN);
{
switch(LA(1)) {
case LITERAL_raises:
{
raises_expr();
astFactory.addASTChild(currentAST, returnAST);
break;
}
case SEMI:
{
break;
}
default:
{
throw new NoViableAltException(LT(1), getFilename());
}
}
}
finder_dcl_AST = (AST) currentAST.root;
} catch (RecognitionException ex) {
if (inputState.guessing == 0) {
reportError(ex);
consume();
consumeUntil(_tokenSet_10);
} else {
throw ex;
}
}
returnAST = finder_dcl_AST;
}
Aggregations