Changeset dc2b4d6 for src/Parser


Ignore:
Timestamp:
Jul 17, 2017, 12:18:36 PM (7 years ago)
Author:
Andrew Beach <ajbeach@…>
Branches:
ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
Children:
17954f0e
Parents:
e5f2a67
Message:

Discused updates to handler predicate parsing.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Parser/parser.yy

    re5f2a67 rdc2b4d6  
    99// Author           : Peter A. Buhr
    1010// Created On       : Sat Sep  1 20:22:55 2001
    11 // Last Modified By : Peter A. Buhr
    12 // Last Modified On : Sat Jul 15 15:59:50 2017
    13 // Update Count     : 2454
     11// Last Modified By : Andrew Beach
     12// Last Modified On : Mon Jul 17 12:17:00 2017
     13// Update Count     : 2455
    1414//
    1515
     
    980980                { $$ = (StatementNode *)$1->set_last( new StatementNode( build_catch( $2, nullptr, new ExpressionNode( build_constantInteger( *$6 ) ), $9 ) ) ); }
    981981
    982         | handler_key '(' push push exception_declaration handler_predicate_opt pop ')' compound_statement pop
     982        | handler_key '(' push push exception_declaration pop handler_predicate_opt ')' compound_statement pop
    983983                { $$ = new StatementNode( build_catch( $1, $5, nullptr, $9 ) ); }
    984         | handler_clause handler_key '(' push push exception_declaration handler_predicate_opt pop ')' compound_statement pop
     984        | handler_clause handler_key '(' push push exception_declaration pop handler_predicate_opt ')' compound_statement pop
    985985                { $$ = (StatementNode *)$1->set_last( new StatementNode( build_catch( $2, $6, nullptr, $10 ) ) ); }
    986986        ;
     
    988988handler_predicate_opt:
    989989        //empty
    990         | ':' conditional_expression
     990        | ';' conditional_expression
    991991        ;
    992992
Note: See TracChangeset for help on using the changeset viewer.