Chris Lattner | eb8a28f | 2006-08-10 18:43:39 +0000 | [diff] [blame] | 1 | //===--- Parser.cpp - C Language Family Parser ----------------------------===// |
Chris Lattner | 0bb5f83 | 2006-07-31 01:59:18 +0000 | [diff] [blame] | 2 | // |
| 3 | // The LLVM Compiler Infrastructure |
| 4 | // |
| 5 | // This file was developed by Chris Lattner and is distributed under |
| 6 | // the University of Illinois Open Source License. See LICENSE.TXT for details. |
| 7 | // |
| 8 | //===----------------------------------------------------------------------===// |
| 9 | // |
| 10 | // This file implements the Parser interfaces. |
| 11 | // |
| 12 | //===----------------------------------------------------------------------===// |
| 13 | |
| 14 | #include "clang/Parse/Parser.h" |
Chris Lattner | b9093cd | 2006-08-04 04:39:53 +0000 | [diff] [blame] | 15 | #include "clang/Parse/Declarations.h" |
Chris Lattner | 971c6b6 | 2006-08-05 22:46:42 +0000 | [diff] [blame] | 16 | #include "clang/Parse/Scope.h" |
Chris Lattner | 0bb5f83 | 2006-07-31 01:59:18 +0000 | [diff] [blame] | 17 | using namespace llvm; |
| 18 | using namespace clang; |
| 19 | |
Chris Lattner | 685ed1e | 2006-08-14 00:22:04 +0000 | [diff] [blame^] | 20 | Parser::Parser(Preprocessor &pp, Action &actions) |
Chris Lattner | 971c6b6 | 2006-08-05 22:46:42 +0000 | [diff] [blame] | 21 | : PP(pp), Actions(actions), Diags(PP.getDiagnostics()) { |
Chris Lattner | acd58a3 | 2006-08-06 17:24:14 +0000 | [diff] [blame] | 22 | Tok.SetKind(tok::eof); |
Chris Lattner | e4e3859 | 2006-08-14 00:15:05 +0000 | [diff] [blame] | 23 | CurScope = 0; |
Chris Lattner | eec40f9 | 2006-08-06 21:55:29 +0000 | [diff] [blame] | 24 | |
| 25 | ParenCount = BracketCount = BraceCount = 0; |
Chris Lattner | 971c6b6 | 2006-08-05 22:46:42 +0000 | [diff] [blame] | 26 | } |
| 27 | |
| 28 | Parser::~Parser() { |
Chris Lattner | e4e3859 | 2006-08-14 00:15:05 +0000 | [diff] [blame] | 29 | // If we still have scopes active, delete the scope tree. |
Chris Lattner | 971c6b6 | 2006-08-05 22:46:42 +0000 | [diff] [blame] | 30 | delete CurScope; |
| 31 | } |
| 32 | |
Chris Lattner | 685ed1e | 2006-08-14 00:22:04 +0000 | [diff] [blame^] | 33 | /// Out-of-line virtual destructor to provide home for Action class. |
| 34 | Action::~Action() {} |
Chris Lattner | e4e3859 | 2006-08-14 00:15:05 +0000 | [diff] [blame] | 35 | |
Chris Lattner | 0bb5f83 | 2006-07-31 01:59:18 +0000 | [diff] [blame] | 36 | |
Chris Lattner | b9093cd | 2006-08-04 04:39:53 +0000 | [diff] [blame] | 37 | void Parser::Diag(SourceLocation Loc, unsigned DiagID, |
Chris Lattner | 0bb5f83 | 2006-07-31 01:59:18 +0000 | [diff] [blame] | 38 | const std::string &Msg) { |
Chris Lattner | b9093cd | 2006-08-04 04:39:53 +0000 | [diff] [blame] | 39 | Diags.Report(Loc, DiagID, Msg); |
Chris Lattner | 0bb5f83 | 2006-07-31 01:59:18 +0000 | [diff] [blame] | 40 | } |
| 41 | |
Chris Lattner | 4564bc1 | 2006-08-10 23:14:52 +0000 | [diff] [blame] | 42 | /// MatchRHSPunctuation - For punctuation with a LHS and RHS (e.g. '['/']'), |
| 43 | /// this helper function matches and consumes the specified RHS token if |
| 44 | /// present. If not present, it emits the specified diagnostic indicating |
| 45 | /// that the parser failed to match the RHS of the token at LHSLoc. LHSName |
| 46 | /// should be the name of the unmatched LHS token. |
| 47 | void Parser::MatchRHSPunctuation(tok::TokenKind RHSTok, SourceLocation LHSLoc, |
| 48 | const char *LHSName, unsigned DiagID) { |
| 49 | |
| 50 | if (Tok.getKind() == RHSTok) { |
Chris Lattner | dbb2a46 | 2006-08-12 19:26:13 +0000 | [diff] [blame] | 51 | ConsumeAnyToken(); |
Chris Lattner | 4564bc1 | 2006-08-10 23:14:52 +0000 | [diff] [blame] | 52 | } else { |
| 53 | Diag(Tok, DiagID); |
| 54 | Diag(LHSLoc, diag::err_matching, LHSName); |
| 55 | SkipUntil(RHSTok); |
| 56 | } |
| 57 | } |
| 58 | |
Chris Lattner | dbb2a46 | 2006-08-12 19:26:13 +0000 | [diff] [blame] | 59 | /// ExpectAndConsume - The parser expects that 'ExpectedTok' is next in the |
| 60 | /// input. If so, it is consumed and false is returned. |
| 61 | /// |
| 62 | /// If the input is malformed, this emits the specified diagnostic. Next, if |
| 63 | /// SkipToTok is specified, it calls SkipUntil(SkipToTok). Finally, true is |
| 64 | /// returned. |
| 65 | bool Parser::ExpectAndConsume(tok::TokenKind ExpectedTok, unsigned DiagID, |
| 66 | tok::TokenKind SkipToTok) { |
| 67 | if (Tok.getKind() == ExpectedTok) { |
| 68 | ConsumeToken(); |
| 69 | return false; |
| 70 | } |
| 71 | |
| 72 | Diag(Tok, DiagID); |
| 73 | if (SkipToTok != tok::unknown) |
| 74 | SkipUntil(SkipToTok); |
| 75 | return true; |
| 76 | } |
| 77 | |
Chris Lattner | 70f32b7 | 2006-07-31 05:09:04 +0000 | [diff] [blame] | 78 | //===----------------------------------------------------------------------===// |
Chris Lattner | eec40f9 | 2006-08-06 21:55:29 +0000 | [diff] [blame] | 79 | // Error recovery. |
| 80 | //===----------------------------------------------------------------------===// |
| 81 | |
| 82 | /// SkipUntil - Read tokens until we get to the specified token, then consume |
| 83 | /// it (unless DontConsume is false). Because we cannot guarantee that the |
| 84 | /// token will ever occur, this skips to the next token, or to some likely |
| 85 | /// good stopping point. If StopAtSemi is true, skipping will stop at a ';' |
| 86 | /// character. |
| 87 | /// |
| 88 | /// If SkipUntil finds the specified token, it returns true, otherwise it |
| 89 | /// returns false. |
| 90 | bool Parser::SkipUntil(tok::TokenKind T, bool StopAtSemi, bool DontConsume) { |
Chris Lattner | 5bd57e0 | 2006-08-11 06:40:25 +0000 | [diff] [blame] | 91 | // We always want this function to skip at least one token if the first token |
| 92 | // isn't T and if not at EOF. |
| 93 | bool isFirstTokenSkipped = true; |
Chris Lattner | eec40f9 | 2006-08-06 21:55:29 +0000 | [diff] [blame] | 94 | while (1) { |
| 95 | // If we found the token, stop and return true. |
| 96 | if (Tok.getKind() == T) { |
| 97 | if (DontConsume) { |
| 98 | // Noop, don't consume the token. |
Chris Lattner | eec40f9 | 2006-08-06 21:55:29 +0000 | [diff] [blame] | 99 | } else { |
Chris Lattner | dbb2a46 | 2006-08-12 19:26:13 +0000 | [diff] [blame] | 100 | ConsumeAnyToken(); |
Chris Lattner | eec40f9 | 2006-08-06 21:55:29 +0000 | [diff] [blame] | 101 | } |
| 102 | return true; |
| 103 | } |
| 104 | |
| 105 | switch (Tok.getKind()) { |
| 106 | case tok::eof: |
| 107 | // Ran out of tokens. |
| 108 | return false; |
| 109 | |
| 110 | case tok::l_paren: |
| 111 | // Recursively skip properly-nested parens. |
| 112 | ConsumeParen(); |
Chris Lattner | 5bd57e0 | 2006-08-11 06:40:25 +0000 | [diff] [blame] | 113 | SkipUntil(tok::r_paren, false); |
Chris Lattner | eec40f9 | 2006-08-06 21:55:29 +0000 | [diff] [blame] | 114 | break; |
| 115 | case tok::l_square: |
| 116 | // Recursively skip properly-nested square brackets. |
| 117 | ConsumeBracket(); |
Chris Lattner | 5bd57e0 | 2006-08-11 06:40:25 +0000 | [diff] [blame] | 118 | SkipUntil(tok::r_square, false); |
Chris Lattner | eec40f9 | 2006-08-06 21:55:29 +0000 | [diff] [blame] | 119 | break; |
| 120 | case tok::l_brace: |
| 121 | // Recursively skip properly-nested braces. |
| 122 | ConsumeBrace(); |
Chris Lattner | 5bd57e0 | 2006-08-11 06:40:25 +0000 | [diff] [blame] | 123 | SkipUntil(tok::r_brace, false); |
Chris Lattner | eec40f9 | 2006-08-06 21:55:29 +0000 | [diff] [blame] | 124 | break; |
| 125 | |
| 126 | // Okay, we found a ']' or '}' or ')', which we think should be balanced. |
| 127 | // Since the user wasn't looking for this token (if they were, it would |
| 128 | // already be handled), this isn't balanced. If there is a LHS token at a |
| 129 | // higher level, we will assume that this matches the unbalanced token |
| 130 | // and return it. Otherwise, this is a spurious RHS token, which we skip. |
| 131 | case tok::r_paren: |
Chris Lattner | 5bd57e0 | 2006-08-11 06:40:25 +0000 | [diff] [blame] | 132 | if (ParenCount && !isFirstTokenSkipped) |
| 133 | return false; // Matches something. |
Chris Lattner | eec40f9 | 2006-08-06 21:55:29 +0000 | [diff] [blame] | 134 | ConsumeParen(); |
| 135 | break; |
| 136 | case tok::r_square: |
Chris Lattner | 5bd57e0 | 2006-08-11 06:40:25 +0000 | [diff] [blame] | 137 | if (BracketCount && !isFirstTokenSkipped) |
| 138 | return false; // Matches something. |
Chris Lattner | eec40f9 | 2006-08-06 21:55:29 +0000 | [diff] [blame] | 139 | ConsumeBracket(); |
| 140 | break; |
| 141 | case tok::r_brace: |
Chris Lattner | 5bd57e0 | 2006-08-11 06:40:25 +0000 | [diff] [blame] | 142 | if (BraceCount && !isFirstTokenSkipped) |
| 143 | return false; // Matches something. |
Chris Lattner | eec40f9 | 2006-08-06 21:55:29 +0000 | [diff] [blame] | 144 | ConsumeBrace(); |
| 145 | break; |
| 146 | |
| 147 | case tok::string_literal: |
| 148 | ConsumeStringToken(); |
| 149 | break; |
| 150 | case tok::semi: |
| 151 | if (StopAtSemi) |
| 152 | return false; |
| 153 | // FALL THROUGH. |
| 154 | default: |
| 155 | // Skip this token. |
| 156 | ConsumeToken(); |
| 157 | break; |
| 158 | } |
Chris Lattner | 5bd57e0 | 2006-08-11 06:40:25 +0000 | [diff] [blame] | 159 | isFirstTokenSkipped = false; |
Chris Lattner | eec40f9 | 2006-08-06 21:55:29 +0000 | [diff] [blame] | 160 | } |
| 161 | } |
| 162 | |
| 163 | //===----------------------------------------------------------------------===// |
Chris Lattner | e4e3859 | 2006-08-14 00:15:05 +0000 | [diff] [blame] | 164 | // Scope manipulation |
| 165 | //===----------------------------------------------------------------------===// |
| 166 | |
| 167 | /// EnterScope - Start a new scope. |
| 168 | void Parser::EnterScope() { |
Chris Lattner | e4e3859 | 2006-08-14 00:15:05 +0000 | [diff] [blame] | 169 | CurScope = new Scope(CurScope); |
| 170 | } |
| 171 | |
| 172 | /// ExitScope - Pop a scope off the scope stack. |
| 173 | void Parser::ExitScope() { |
| 174 | assert(CurScope && "Scope imbalance!"); |
| 175 | |
| 176 | // Inform the actions module that this scope is going away. |
| 177 | Actions.PopScope(Tok.getLocation(), CurScope); |
| 178 | |
| 179 | Scope *Old = CurScope; |
| 180 | CurScope = Old->getParent(); |
| 181 | delete Old; |
| 182 | } |
| 183 | |
| 184 | |
| 185 | |
| 186 | |
| 187 | //===----------------------------------------------------------------------===// |
Chris Lattner | 70f32b7 | 2006-07-31 05:09:04 +0000 | [diff] [blame] | 188 | // C99 6.9: External Definitions. |
| 189 | //===----------------------------------------------------------------------===// |
Chris Lattner | 0bb5f83 | 2006-07-31 01:59:18 +0000 | [diff] [blame] | 190 | |
| 191 | /// ParseTranslationUnit: |
Chris Lattner | 70f32b7 | 2006-07-31 05:09:04 +0000 | [diff] [blame] | 192 | /// translation-unit: [C99 6.9] |
Chris Lattner | 0bb5f83 | 2006-07-31 01:59:18 +0000 | [diff] [blame] | 193 | /// external-declaration |
| 194 | /// translation-unit external-declaration |
| 195 | void Parser::ParseTranslationUnit() { |
Chris Lattner | e4e3859 | 2006-08-14 00:15:05 +0000 | [diff] [blame] | 196 | // Prime the lexer look-ahead. |
| 197 | ConsumeToken(); |
| 198 | |
| 199 | // Create the global scope, install it as the current scope. |
| 200 | assert(CurScope == 0 && "A scope is already active?"); |
| 201 | EnterScope(); |
Chris Lattner | 0bb5f83 | 2006-07-31 01:59:18 +0000 | [diff] [blame] | 202 | |
| 203 | if (Tok.getKind() == tok::eof) // Empty source file is an extension. |
| 204 | Diag(diag::ext_empty_source_file); |
| 205 | |
| 206 | while (Tok.getKind() != tok::eof) |
| 207 | ParseExternalDeclaration(); |
Chris Lattner | e4e3859 | 2006-08-14 00:15:05 +0000 | [diff] [blame] | 208 | |
| 209 | ExitScope(); |
| 210 | assert(CurScope == 0 && "Scope imbalance!"); |
Chris Lattner | 0bb5f83 | 2006-07-31 01:59:18 +0000 | [diff] [blame] | 211 | } |
| 212 | |
| 213 | /// ParseExternalDeclaration: |
Chris Lattner | 70f32b7 | 2006-07-31 05:09:04 +0000 | [diff] [blame] | 214 | /// external-declaration: [C99 6.9] |
Chris Lattner | 0bb5f83 | 2006-07-31 01:59:18 +0000 | [diff] [blame] | 215 | /// function-definition [TODO] |
| 216 | /// declaration [TODO] |
| 217 | /// [EXT] ';' |
| 218 | /// [GNU] asm-definition [TODO] |
| 219 | /// [GNU] __extension__ external-declaration [TODO] |
| 220 | /// [OBJC] objc-class-definition [TODO] |
| 221 | /// [OBJC] objc-class-declaration [TODO] |
| 222 | /// [OBJC] objc-alias-declaration [TODO] |
| 223 | /// [OBJC] objc-protocol-definition [TODO] |
| 224 | /// [OBJC] objc-method-definition [TODO] |
| 225 | /// [OBJC] @end [TODO] |
| 226 | /// |
| 227 | void Parser::ParseExternalDeclaration() { |
| 228 | switch (Tok.getKind()) { |
| 229 | case tok::semi: |
| 230 | Diag(diag::ext_top_level_semi); |
| 231 | ConsumeToken(); |
| 232 | break; |
| 233 | default: |
| 234 | // We can't tell whether this is a function-definition or declaration yet. |
| 235 | ParseDeclarationOrFunctionDefinition(); |
| 236 | break; |
| 237 | } |
| 238 | } |
| 239 | |
| 240 | /// ParseDeclarationOrFunctionDefinition - Parse either a function-definition or |
Chris Lattner | 70f32b7 | 2006-07-31 05:09:04 +0000 | [diff] [blame] | 241 | /// a declaration. We can't tell which we have until we read up to the |
| 242 | /// compound-statement in function-definition. |
Chris Lattner | 0bb5f83 | 2006-07-31 01:59:18 +0000 | [diff] [blame] | 243 | /// |
Chris Lattner | 70f32b7 | 2006-07-31 05:09:04 +0000 | [diff] [blame] | 244 | /// function-definition: [C99 6.9.1] |
| 245 | /// declaration-specifiers[opt] declarator declaration-list[opt] |
| 246 | /// compound-statement [TODO] |
| 247 | /// declaration: [C99 6.7] |
Chris Lattner | 0bb5f83 | 2006-07-31 01:59:18 +0000 | [diff] [blame] | 248 | /// declaration-specifiers init-declarator-list[opt] ';' [TODO] |
Chris Lattner | d9c3c59 | 2006-08-05 06:26:47 +0000 | [diff] [blame] | 249 | /// [!C99] init-declarator-list ';' [TODO] |
Chris Lattner | 70f32b7 | 2006-07-31 05:09:04 +0000 | [diff] [blame] | 250 | /// [OMP] threadprivate-directive [TODO] |
| 251 | /// |
Chris Lattner | 0bb5f83 | 2006-07-31 01:59:18 +0000 | [diff] [blame] | 252 | void Parser::ParseDeclarationOrFunctionDefinition() { |
Chris Lattner | 70f32b7 | 2006-07-31 05:09:04 +0000 | [diff] [blame] | 253 | // Parse the common declaration-specifiers piece. |
Chris Lattner | b9093cd | 2006-08-04 04:39:53 +0000 | [diff] [blame] | 254 | DeclSpec DS; |
| 255 | ParseDeclarationSpecifiers(DS); |
Chris Lattner | d286488 | 2006-08-05 08:09:44 +0000 | [diff] [blame] | 256 | |
| 257 | // C99 6.7.2.3p6: Handle "struct-or-union identifier;", "enum { X };" |
Chris Lattner | 53361ac | 2006-08-10 05:19:57 +0000 | [diff] [blame] | 258 | // declaration-specifiers init-declarator-list[opt] ';' |
Chris Lattner | 0e89462 | 2006-08-13 19:58:17 +0000 | [diff] [blame] | 259 | if (Tok.getKind() == tok::semi) { |
| 260 | // TODO: emit error on 'int;' or 'const enum foo;'. |
| 261 | // if (!DS.isMissingDeclaratorOk()) Diag(...); |
| 262 | |
| 263 | ConsumeToken(); |
| 264 | return; |
| 265 | } |
Chris Lattner | 70f32b7 | 2006-07-31 05:09:04 +0000 | [diff] [blame] | 266 | |
Chris Lattner | fff824f | 2006-08-07 06:31:38 +0000 | [diff] [blame] | 267 | // Parse the first declarator. |
| 268 | Declarator DeclaratorInfo(DS, Declarator::FileContext); |
| 269 | ParseDeclarator(DeclaratorInfo); |
| 270 | // Error parsing the declarator? |
| 271 | if (DeclaratorInfo.getIdentifier() == 0) { |
| 272 | // If so, skip until the semi-colon or a }. |
| 273 | SkipUntil(tok::r_brace, true); |
| 274 | if (Tok.getKind() == tok::semi) |
| 275 | ConsumeToken(); |
| 276 | return; |
| 277 | } |
Chris Lattner | 70f32b7 | 2006-07-31 05:09:04 +0000 | [diff] [blame] | 278 | |
Chris Lattner | fff824f | 2006-08-07 06:31:38 +0000 | [diff] [blame] | 279 | // If the declarator is the start of a function definition, handle it. |
| 280 | if (Tok.getKind() == tok::equal || // int X()= -> not a function def |
| 281 | Tok.getKind() == tok::comma || // int X(), -> not a function def |
| 282 | Tok.getKind() == tok::semi || // int X(); -> not a function def |
| 283 | Tok.getKind() == tok::kw_asm || // int X() __asm__ -> not a fn def |
| 284 | Tok.getKind() == tok::kw___attribute) {// int X() __attr__ -> not a fn def |
| 285 | // FALL THROUGH. |
| 286 | } else if (DeclaratorInfo.isInnermostFunctionType() && |
| 287 | (Tok.getKind() == tok::l_brace || // int X() {} |
| 288 | isDeclarationSpecifier())) { // int X(f) int f; {} |
| 289 | ParseFunctionDefinition(DeclaratorInfo); |
| 290 | return; |
| 291 | } else { |
| 292 | if (DeclaratorInfo.isInnermostFunctionType()) |
| 293 | Diag(Tok, diag::err_expected_fn_body); |
| 294 | else |
| 295 | Diag(Tok, diag::err_expected_after_declarator); |
Chris Lattner | e4e3859 | 2006-08-14 00:15:05 +0000 | [diff] [blame] | 296 | SkipUntil(tok::semi); |
Chris Lattner | fff824f | 2006-08-07 06:31:38 +0000 | [diff] [blame] | 297 | return; |
| 298 | } |
Chris Lattner | d9c3c59 | 2006-08-05 06:26:47 +0000 | [diff] [blame] | 299 | |
Chris Lattner | 53361ac | 2006-08-10 05:19:57 +0000 | [diff] [blame] | 300 | // Parse the init-declarator-list for a normal declaration. |
| 301 | ParseInitDeclaratorListAfterFirstDeclarator(DeclaratorInfo); |
Chris Lattner | 70f32b7 | 2006-07-31 05:09:04 +0000 | [diff] [blame] | 302 | } |
| 303 | |
Chris Lattner | fff824f | 2006-08-07 06:31:38 +0000 | [diff] [blame] | 304 | /// ParseFunctionDefinition - We parsed and verified that the specified |
| 305 | /// Declarator is well formed. If this is a K&R-style function, read the |
| 306 | /// parameters declaration-list, then start the compound-statement. |
| 307 | /// |
| 308 | /// declaration-specifiers[opt] declarator declaration-list[opt] |
| 309 | /// compound-statement [TODO] |
| 310 | /// |
| 311 | void Parser::ParseFunctionDefinition(Declarator &D) { |
| 312 | const DeclaratorTypeInfo &FnTypeInfo = D.getTypeObject(0); |
| 313 | assert(FnTypeInfo.Kind == DeclaratorTypeInfo::Function && |
| 314 | "This isn't a function declarator!"); |
| 315 | |
| 316 | // If this declaration was formed with a K&R-style identifier list for the |
| 317 | // arguments, parse declarations for all of the args next. |
| 318 | // int foo(a,b) int a; float b; {} |
| 319 | if (!FnTypeInfo.Fun.hasPrototype && !FnTypeInfo.Fun.isEmpty) { |
| 320 | // Read all the argument declarations. |
Chris Lattner | 53361ac | 2006-08-10 05:19:57 +0000 | [diff] [blame] | 321 | while (isDeclarationSpecifier()) |
| 322 | ParseDeclaration(Declarator::KNRTypeListContext); |
Chris Lattner | fff824f | 2006-08-07 06:31:38 +0000 | [diff] [blame] | 323 | |
| 324 | // Note, check that we got them all. |
| 325 | } else { |
| 326 | //if (isDeclarationSpecifier()) |
| 327 | // Diag('k&r declspecs with prototype?'); |
| 328 | |
Chris Lattner | 8693a51 | 2006-08-13 21:54:02 +0000 | [diff] [blame] | 329 | // TODO: Install the arguments into the current scope. |
Chris Lattner | fff824f | 2006-08-07 06:31:38 +0000 | [diff] [blame] | 330 | } |
| 331 | |
Chris Lattner | 0ccd51e | 2006-08-09 05:47:47 +0000 | [diff] [blame] | 332 | // We should have an opening brace now. |
| 333 | if (Tok.getKind() != tok::l_brace) { |
| 334 | Diag(Tok, diag::err_expected_fn_body); |
| 335 | |
| 336 | // Skip over garbage, until we get to '{'. Don't eat the '{'. |
| 337 | SkipUntil(tok::l_brace, true, true); |
| 338 | |
| 339 | // If we didn't find the '{', bail out. |
| 340 | if (Tok.getKind() != tok::l_brace) |
| 341 | return; |
| 342 | } |
Chris Lattner | fff824f | 2006-08-07 06:31:38 +0000 | [diff] [blame] | 343 | |
Chris Lattner | 0ccd51e | 2006-08-09 05:47:47 +0000 | [diff] [blame] | 344 | ParseCompoundStatement(); |
Chris Lattner | fff824f | 2006-08-07 06:31:38 +0000 | [diff] [blame] | 345 | } |
| 346 | |