charmxi: Reindent grammar
authorRamprasad Venkataraman <ramv@illinois.edu>
Tue, 3 Apr 2012 23:01:11 +0000 (18:01 -0500)
committerPhil Miller <mille121@illinois.edu>
Thu, 5 Apr 2012 21:18:02 +0000 (16:18 -0500)
src/xlat-i/xi-grammar.y

index 411ca8c54cad7e3b56c26a075e47f7862dcd8c97..60a5d4c802b93efa9374e8c7ea94c3a05da6e58e 100644 (file)
@@ -213,36 +213,36 @@ ConstructList     : /* Empty */
                ;
 
 Construct      : OptExtern '{' ConstructList '}' OptSemiColon
-               { if($3) $3->setExtern($1); $$ = $3; }
-                | NAMESPACE Name '{' ConstructList '}'
-                { $$ = new Scope($2, $4); }
-                | USING NAMESPACE QualName ';'
-                { $$ = new UsingScope($3, false); }
-                | USING QualName ';'
-                { $$ = new UsingScope($2, true); }
-               | OptExtern Module
-               { $2->setExtern($1); $$ = $2; }
-               | OptExtern NonEntryMember 
-               { $2->setExtern($1); $$ = $2; }
-               | OptExtern Message ';'
-               { $2->setExtern($1); $$ = $2; }
-               | OptExtern Chare
-               { $2->setExtern($1); $$ = $2; }
-               | OptExtern Group
-               { $2->setExtern($1); $$ = $2; }
-               | OptExtern NodeGroup
-               { $2->setExtern($1); $$ = $2; }
-               | OptExtern Array
-               { $2->setExtern($1); $$ = $2; }
-               | OptExtern Template
-               { $2->setExtern($1); $$ = $2; }
-               | HashIFComment
-               { $$ = NULL; }
-               | HashIFDefComment
-               { $$ = NULL; }
-                | AccelBlock
-                { $$ = $1; }
-               ;
+        { if($3) $3->setExtern($1); $$ = $3; }
+        | NAMESPACE Name '{' ConstructList '}'
+        { $$ = new Scope($2, $4); }
+        | USING NAMESPACE QualName ';'
+        { $$ = new UsingScope($3, false); }
+        | USING QualName ';'
+        { $$ = new UsingScope($2, true); }
+        | OptExtern Module
+        { $2->setExtern($1); $$ = $2; }
+        | OptExtern NonEntryMember
+        { $2->setExtern($1); $$ = $2; }
+        | OptExtern Message ';'
+        { $2->setExtern($1); $$ = $2; }
+        | OptExtern Chare
+        { $2->setExtern($1); $$ = $2; }
+        | OptExtern Group
+        { $2->setExtern($1); $$ = $2; }
+        | OptExtern NodeGroup
+        { $2->setExtern($1); $$ = $2; }
+        | OptExtern Array
+        { $2->setExtern($1); $$ = $2; }
+        | OptExtern Template
+        { $2->setExtern($1); $$ = $2; }
+        | HashIFComment
+        { $$ = NULL; }
+        | HashIFDefComment
+        { $$ = NULL; }
+        | AccelBlock
+        { $$ = $1; }
+        ;
 
 TParam         : Type
                { $$ = new TParamType($1); }