Changeset 87d13cd for src/Parser
- Timestamp:
- Mar 21, 2017, 10:07:52 PM (9 years ago)
- 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, stuck-waitfor-destruct, with_gc
- Children:
- cb91437
- Parents:
- 829c907 (diff), a53e10a (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. - Location:
- src/Parser
- Files:
-
- 2 edited
-
ExpressionNode.cc (modified) (1 diff)
-
lex.ll (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/Parser/ExpressionNode.cc
r829c907 r87d13cd 163 163 ConstantExpr *build_constantStr( const std::string & str ) { 164 164 // string should probably be a primitive type 165 ArrayType *at = new ArrayType( emptyQualifiers, new BasicType( emptyQualifiers, BasicType::Char ),165 ArrayType *at = new ArrayType( emptyQualifiers, new BasicType( Type::Qualifiers( Type::Const ), BasicType::Char ), 166 166 new ConstantExpr( Constant( new BasicType( emptyQualifiers, BasicType::UnsignedInt ), 167 167 toString( str.size()+1-2 ) ) ), // +1 for '\0' and -2 for '"' -
src/Parser/lex.ll
r829c907 r87d13cd 202 202 __const__ { KEYWORD_RETURN(CONST); } // GCC 203 203 continue { KEYWORD_RETURN(CONTINUE); } 204 _Coroutine { KEYWORD_RETURN(COROUTINE); } // CFA204 coroutine { KEYWORD_RETURN(COROUTINE); } // CFA 205 205 default { KEYWORD_RETURN(DEFAULT); } 206 206 disable { KEYWORD_RETURN(DISABLE); } // CFA
Note:
See TracChangeset
for help on using the changeset viewer.