Changeset 4e05d27 for src/Parser/parser.yy
- Timestamp:
- Jul 24, 2016, 3:30:09 AM (7 years ago)
- Branches:
- aaron-thesis, arm-eh, cleanup-dtors, ctor, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, memory, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
- Children:
- c967ef9, e4957e7
- Parents:
- ef3b335
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Parser/parser.yy
ref3b335 r4e05d27 10 10 // Created On : Sat Sep 1 20:22:55 2001 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Tue Jul 12 20:52:53201613 // Update Count : 166 112 // Last Modified On : Sat Jul 23 17:01:30 2016 13 // Update Count : 1668 14 14 // 15 15 … … 303 303 constant: 304 304 // ENUMERATIONconstant is not included here; it is treated as a variable with type "enumeration constant". 305 INTEGERconstant { $$ = makeConstant ( ConstantNode::Integer,$1 ); }306 | FLOATINGconstant { $$ = makeConstant ( ConstantNode::Float,$1 ); }307 | CHARACTERconstant { $$ = makeConstant ( ConstantNode::Character,$1 ); }305 INTEGERconstant { $$ = makeConstantInteger( *$1 ); } 306 | FLOATINGconstant { $$ = makeConstantFloat( *$1 ); } 307 | CHARACTERconstant { $$ = makeConstantChar( *$1 ); } 308 308 ; 309 309 … … 330 330 331 331 string_literal_list: // juxtaposed strings are concatenated 332 STRINGliteral { $$ = makeConstantStr( ConstantNode::String,$1 ); }332 STRINGliteral { $$ = makeConstantStr( *$1 ); } 333 333 | string_literal_list STRINGliteral { $$ = $1->appendstr( $2 ); } 334 334 ;
Note: See TracChangeset
for help on using the changeset viewer.