Skip to content

Commit 555f151

Browse files
Fixed indentation
1 parent 85501dd commit 555f151

15 files changed

+1173
-1173
lines changed

ODIN_II/SRC/ast_elaborate.cpp

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ long long calculation(std::vector<std::string> post_exp)
270270
long long first_exp(stacked.top());
271271
stacked.pop();
272272

273-
if (post_exp[i] == "+"){
273+
if (post_exp[i] == "+"){
274274
stacked.push(first_exp + second_exp);
275275

276276
}else if (post_exp[i] == "-"){
@@ -287,7 +287,7 @@ long long calculation(std::vector<std::string> post_exp)
287287
stacked.push(second_exp);
288288
stacked.push(std::strtoll(post_exp[i].c_str(),NULL,10));
289289
}
290-
}
290+
}
291291
return stacked.top();
292292
}
293293

@@ -306,8 +306,8 @@ void translate_expression(std::vector<std::string> infix_exp, std::vector<std::s
306306
( stacked.top() == "*" || stacked.top() == "/" ) )
307307
{
308308
while (!stacked.empty()){
309-
postfix_exp.push_back(stacked.top());
310-
stacked.pop();
309+
postfix_exp.push_back(stacked.top());
310+
stacked.pop();
311311
}
312312
}
313313
stacked.push(infix_exp[i]);
@@ -316,8 +316,8 @@ void translate_expression(std::vector<std::string> infix_exp, std::vector<std::s
316316
}
317317
}
318318
while (!stacked.empty()){
319-
postfix_exp.push_back(stacked.top());
320-
stacked.pop();
319+
postfix_exp.push_back(stacked.top());
320+
stacked.pop();
321321
}
322322
}
323323

@@ -356,8 +356,8 @@ void mark_node_write(ast_node_t *node, std::vector<std::string> list)
356356
list.push_back(node->children[0]->types.identifier);
357357
}
358358

359-
for (size_t i = 0; node && i < node->num_children; i++)
360-
mark_node_write(node->children[i], list);
359+
for (size_t i = 0; node && i < node->num_children; i++)
360+
mark_node_write(node->children[i], list);
361361

362362
}
363363

@@ -740,9 +740,9 @@ bool adjoin_constant()
740740
mark = 1;
741741
}
742742
break;
743-
default:
744-
//pass
745-
break;
743+
default:
744+
//pass
745+
break;
746746
}
747747
}
748748
if (mark == 0)
@@ -1065,9 +1065,9 @@ void create_op_node(ast_node_t *node, enode *temp, int line_num, int file_num)
10651065
case '/':
10661066
node->types.operation.op = DIVIDE;
10671067
break;
1068-
default:
1069-
oassert(FALSE);
1070-
break;
1068+
default:
1069+
oassert(FALSE);
1070+
break;
10711071
}
10721072

10731073
}
@@ -1207,7 +1207,7 @@ void delete_bracket(int begin, int end)
12071207
void delete_bracket_head(enode *begin, enode *end)
12081208
{
12091209
enode *temp;
1210-
enode *s = NULL;
1210+
enode *s = NULL;
12111211
for (temp = end; temp != NULL; temp = temp->next)
12121212
{
12131213
if ((temp->flag == 2) && (temp->priority == 2))
@@ -1308,8 +1308,8 @@ void change_exp_list(enode *begin, enode *end, enode *s, int flag)
13081308
}
13091309
break;
13101310
}
1311-
default:
1312-
break;
1311+
default:
1312+
break;
13131313

13141314
}
13151315
}

0 commit comments

Comments
 (0)