Package com.icona.tree.nodes

Examples of com.icona.tree.nodes.Statement$CaseDefaultStatement


    // $ANTLR start "external_declaration"
    // C:\\Users\\line47\\workspace\\ObjCFYPA\\src\\com\\icona\\antlr\\main\\ObjectiveC.g:90:1: external_declaration : (d= declaration |stmt= statement | class_interface | class_implementation | protocol_declaration | protocol_declaration_list );
    public final void external_declaration() throws RecognitionException {
        ListDeclaration d =null;

        Statement stmt =null;


        try {
            // C:\\Users\\line47\\workspace\\ObjCFYPA\\src\\com\\icona\\antlr\\main\\ObjectiveC.g:92:2: (d= declaration |stmt= statement | class_interface | class_implementation | protocol_declaration | protocol_declaration_list )
            int alt2=6;
View Full Code Here



    // $ANTLR start "statement"
    // C:\\Users\\line47\\workspace\\ObjCFYPA\\src\\com\\icona\\antlr\\main\\ObjectiveC.g:629:1: statement returns [Statement statement] : (sel_stmt= selection_statement |exp= expression ';' |cmp_stmt= compound_statement |itr_stmt= iteration_statement |label_stmt= labeled_statement |decl= declaration | ';' );
    public final Statement statement() throws RecognitionException {
        Statement statement = null;


        Statement sel_stmt =null;

        Expression exp =null;

        Statement.CompoundStatement cmp_stmt =null;

        Statement itr_stmt =null;

        Statement label_stmt =null;

        ListDeclaration decl =null;


View Full Code Here


    // $ANTLR start "labeled_statement"
    // C:\\Users\\line47\\workspace\\ObjCFYPA\\src\\com\\icona\\antlr\\main\\ObjectiveC.g:647:1: labeled_statement returns [Statement Stmt] : (v= identifier ':' s= statement | 'case' ce= constant_expression ':' s= statement | 'default' ':' s= statement );
    public final Statement labeled_statement() throws RecognitionException {
        Statement Stmt = null;


        ObjectiveCParser.identifier_return v =null;

        Statement s =null;

        Expression ce =null;


View Full Code Here


    // $ANTLR start "selection_statement"
    // C:\\Users\\line47\\workspace\\ObjCFYPA\\src\\com\\icona\\antlr\\main\\ObjectiveC.g:670:1: selection_statement returns [Statement statement] : ( 'if' '(' exp= expression ')' stmtIf= statement ( 'else' stmtElse= statement )? | 'switch' '(' exp= expression ')' switch_stmt= statement );
    public final Statement selection_statement() throws RecognitionException {
        Statement statement = null;


        Expression exp =null;

        Statement stmtIf =null;

        Statement stmtElse =null;

        Statement switch_stmt =null;



        statement =null;
        Statement.If statement_i=null;
View Full Code Here


    // $ANTLR start "iteration_statement"
    // C:\\Users\\line47\\workspace\\ObjCFYPA\\src\\com\\icona\\antlr\\main\\ObjectiveC.g:715:1: iteration_statement returns [Statement Stmt] : ( 'while' '(' e= expression ')' s= statement | 'do' s= statement 'while' '(' e= expression ')' ';' | 'for' '(' (e1= expression |decl= declaration )? ';' (e2= expression )? ';' (e3= expression )? ')' s= statement );
    public final Statement iteration_statement() throws RecognitionException {
        Statement Stmt = null;


        Expression e =null;

        Statement s =null;

        Expression e1 =null;

        ListDeclaration decl =null;
View Full Code Here

    // C:\\Users\\line47\\workspace\\ObjCFYPA\\src\\com\\icona\\antlr\\main\\ObjectiveC.g:764:1: statement_list returns [Statement.StatementList statement] : (stmt= statement )+ ;
    public final Statement.StatementList statement_list() throws RecognitionException {
        Statement.StatementList statement = null;


        Statement stmt =null;



        statement =new Statement.StatementList(null,-1);
View Full Code Here

    }
    // $ANTLR end synpred2_ObjectiveC

    // $ANTLR start synpred3_ObjectiveC
    public final void synpred3_ObjectiveC_fragment() throws RecognitionException {
        Statement stmt =null;


        // C:\\Users\\line47\\workspace\\ObjCFYPA\\src\\com\\icona\\antlr\\main\\ObjectiveC.g:94:5: (stmt= statement )
        // C:\\Users\\line47\\workspace\\ObjCFYPA\\src\\com\\icona\\antlr\\main\\ObjectiveC.g:94:5: stmt= statement
        {
View Full Code Here

    }
    // $ANTLR end synpred52_ObjectiveC

    // $ANTLR start synpred88_ObjectiveC
    public final void synpred88_ObjectiveC_fragment() throws RecognitionException {
        Statement stmtElse =null;


        // C:\\Users\\line47\\workspace\\ObjCFYPA\\src\\com\\icona\\antlr\\main\\ObjectiveC.g:694:6: ( 'else' stmtElse= statement )
        // C:\\Users\\line47\\workspace\\ObjCFYPA\\src\\com\\icona\\antlr\\main\\ObjectiveC.g:694:6: 'else' stmtElse= statement
        {
View Full Code Here

TOP

Related Classes of com.icona.tree.nodes.Statement$CaseDefaultStatement

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.