Skip to content

Commit

Permalink
aesthetic changes
Browse files Browse the repository at this point in the history
  • Loading branch information
mrshu committed Feb 6, 2014
1 parent c4901ce commit e54af1e
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions pynxc/second_pass.py
Expand Up @@ -110,7 +110,7 @@ def print_variable_definitions(self, variables):

else:
val = variables[var].value.__repr__()
self.write('= %s' % val.replace("'", '"'))
self.write(' = %s' % val.replace("'", '"'))
self.write(';')
self.NEWLINE()

Expand All @@ -121,7 +121,7 @@ def print_variable_definitions(self, variables):
val2 = variables2[var2].value.__repr__()

self.write('%s.%s' % (var, variables2[var2].name))
self.write('= %s' % val2.replace("'", '"'))
self.write(' = %s' % val2.replace("'", '"'))
self.write(';')
self.NEWLINE()

Expand Down Expand Up @@ -247,7 +247,7 @@ def visitBitxor(self, node):
self.write(" ^ ")

def visitBreak(self, node):
self.write("break; ")
self.write("break;")
self.NEWLINE()

def visitFunction(self, node):
Expand Down
10 changes: 5 additions & 5 deletions pynxc/tests/out/global_variables.nxc
@@ -1,7 +1,7 @@
int STATE= 0;
int THRESH2= 40;
int THRESH= 40;
int FINAL= 0;
int STATE = 0;
int THRESH2 = 40;
int THRESH = 40;
int FINAL = 0;
task task_ruky() {
while (1) {
OnFwd(OUT_C, 65);
Expand All @@ -14,7 +14,7 @@ task task_ruky() {
Wait(500);
Off(OUT_C);
if ((STATE == 5)) {
break;
break;

}

Expand Down
2 changes: 1 addition & 1 deletion pynxc/tests/out/implicit_main.nxc
@@ -1,4 +1,4 @@
int x= 42;
int x = 42;
task main() {
x = 42;

Expand Down

0 comments on commit e54af1e

Please sign in to comment.