Ignore:
Timestamp:
Mar 15, 2017, 10:46:40 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, resolv-new, with_gc
Children:
905eca1
Parents:
f2e40a9f
git-author:
Peter A. Buhr <pabuhr@…> (03/15/17 22:42:52)
git-committer:
Peter A. Buhr <pabuhr@…> (03/15/17 22:46:40)
Message:

merge qualifier types and use the one in Type

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Parser/parser.yy

    rf2e40a9f r738e304  
    1010// Created On       : Sat Sep  1 20:22:55 2001
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Thu Mar  9 21:40:20 2017
    13 // Update Count     : 2292
     12// Last Modified On : Wed Mar 15 22:06:22 2017
     13// Update Count     : 2308
    1414//
    1515
     
    437437argument_expression:
    438438        // empty
    439                 { $$ = nullptr; }                                                               // use default argument
     439                { $$ = nullptr; }
     440        // | '@'                                                                                                // use default argument
     441        //      { $$ = new ExpressionNode( build_constantInteger( *new string( "2" ) ) ); }
    440442        | assignment_expression
    441443        ;
     
    14041406type_qualifier_name:
    14051407        CONST
    1406                 { $$ = DeclarationNode::newTypeQualifier( DeclarationNode::Const ); }
     1408                { $$ = DeclarationNode::newTypeQualifier( Type::Const ); }
    14071409        | RESTRICT
    1408                 { $$ = DeclarationNode::newTypeQualifier( DeclarationNode::Restrict ); }
     1410                { $$ = DeclarationNode::newTypeQualifier( Type::Restrict ); }
    14091411        | VOLATILE
    1410                 { $$ = DeclarationNode::newTypeQualifier( DeclarationNode::Volatile ); }
     1412                { $$ = DeclarationNode::newTypeQualifier( Type::Volatile ); }
    14111413        | LVALUE                                                                                        // CFA
    1412                 { $$ = DeclarationNode::newTypeQualifier( DeclarationNode::Lvalue ); }
     1414                { $$ = DeclarationNode::newTypeQualifier( Type::Lvalue ); }
    14131415        | MUTEX
    1414                 { $$ = DeclarationNode::newTypeQualifier( DeclarationNode::Mutex ); }
     1416                { $$ = DeclarationNode::newTypeQualifier( Type::Mutex ); }
    14151417        | ATOMIC
    1416                 { $$ = DeclarationNode::newTypeQualifier( DeclarationNode::Atomic ); }
     1418                { $$ = DeclarationNode::newTypeQualifier( Type::Atomic ); }
    14171419        | FORALL '('
    14181420                {
     
    16821684        // empty
    16831685                { $$ = DeclarationNode::newName( 0 ); /* XXX */ } // CFA, no field name
     1686        // '@' // empty
     1687        //      { $$ = DeclarationNode::newName( 0 ); /* XXX */ } // CFA, no field name
    16841688        | bit_subrange_size                                                                     // no field name
    16851689                { $$ = DeclarationNode::newBitfield( $1 ); }
Note: See TracChangeset for help on using the changeset viewer.