Ignore:
Timestamp:
Jul 26, 2017, 2:44:09 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:
2edd80ae
Parents:
b947fb2
Message:

Virtual casts have been added. They still require a lot of hand coded support to work but for simple cases it should be enough.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Parser/parser.yy

    rb947fb2 ra5f0529  
    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 : Mon Jul 24 09:01:14 2017
    13 // Update Count     : 2463
     11// Last Modified By : Andrew Beach
     12// Last Modified On : Tus Jul 25 10:07:00 2017
     13// Update Count     : 2464
    1414//
    1515
     
    573573                // VIRTUAL cannot be opt because of look ahead issues
    574574        | '(' VIRTUAL ')' cast_expression
    575                 { $$ = new ExpressionNode( build_cast( nullptr, $4 ) ); }
     575                { $$ = new ExpressionNode( build_virtual_cast( nullptr, $4 ) ); }
    576576        | '(' VIRTUAL type_no_function ')' cast_expression
    577                 { $$ = new ExpressionNode( build_cast( $3, $5 ) ); }
     577                { $$ = new ExpressionNode( build_virtual_cast( $3, $5 ) ); }
    578578//      | '(' type_no_function ')' tuple
    579579//              { $$ = new ExpressionNode( build_cast( $2, $4 ) ); }
Note: See TracChangeset for help on using the changeset viewer.