Ignore:
Timestamp:
Nov 29, 2016, 11:45:43 AM (8 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:
1f44196
Parents:
0afffee
Message:

add types zero_t and one_t to lexer/parser

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Parser/parser.yy

    r0afffee r3a2128f  
    1010// Created On       : Sat Sep  1 20:22:55 2001
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Wed Oct 26 17:35:53 2016
    13 // Update Count     : 2066
     12// Last Modified On : Tue Nov 29 11:35:52 2016
     13// Update Count     : 2069
    1414//
    1515
     
    7878%token RESTRICT                                                                                 // C99
    7979%token FORALL LVALUE                                                                    // CFA
    80 %token VOID CHAR SHORT INT LONG FLOAT DOUBLE SIGNED UNSIGNED
     80%token VOID CHAR SHORT INT LONG FLOAT DOUBLE SIGNED UNSIGNED ZERO_T ONE_T
    8181%token VALIST                                                                                   // GCC
    8282%token BOOL COMPLEX IMAGINARY                                                   // C99
     
    708708        | '{'
    709709                // Two scopes are necessary because the block itself has a scope, but every declaration within the block also
    710                 // requires its own scope
     710                // requires its own scope.
    711711          push push
    712712          local_label_declaration_opt                                           // GCC, local labels
     
    14041404        | VALIST                                                                                        // GCC, __builtin_va_list
    14051405                { $$ = DeclarationNode::newBuiltinType( DeclarationNode::Valist ); }
     1406        | ZERO_T
     1407                { $$ = DeclarationNode::newBasicType( DeclarationNode::Char ); }
     1408        | ONE_T
     1409                { $$ = DeclarationNode::newBasicType( DeclarationNode::Char ); }
    14061410        ;
    14071411
Note: See TracChangeset for help on using the changeset viewer.