Ignore:
Timestamp:
Mar 16, 2018, 6:20:01 PM (7 years ago)
Author:
Peter A. Buhr <pabuhr@…>
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, with_gc
Children:
55c7577, cb5d36b
Parents:
fdfced6
Message:

add explicit C compound-literal

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Parser/parser.yy

    rfdfced6 re6b3942  
    1010// Created On       : Sat Sep  1 20:22:55 2001
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Fri Mar  9 11:37:35 2018
    13 // Update Count     : 3075
     12// Last Modified On : Fri Mar 16 17:24:44 2018
     13// Update Count     : 3081
    1414//
    1515
     
    534534        | '(' type_no_function ')' '{' initializer_list comma_opt '}' // C99, compound-literal
    535535                { $$ = new ExpressionNode( build_compoundLiteral( $2, new InitializerNode( $5, true ) ) ); }
     536        | '(' type_no_function ')' '@' '{' initializer_list comma_opt '}' // CFA, explicit C compound-literal
     537                { SemanticError( yylloc, "explicit C compound-literal is currently unimplemented." ); $$ = nullptr; } // FIX ME
    536538        | '^' primary_expression '{' argument_expression_list '}' // CFA
    537539                {
Note: See TracChangeset for help on using the changeset viewer.