Changeset e7b2559 for src/Parser/parser.yy
- Timestamp:
- Aug 2, 2016, 9:30:34 AM (8 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, 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:
- 155cce0f
- Parents:
- e21c72d (diff), 79f64f1 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Parser/parser.yy
re21c72d re7b2559 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.