summaryrefslogtreecommitdiff
path: root/preprocessor.py
diff options
context:
space:
mode:
authorBryan Bishop <kanzure@gmail.com>2012-11-30 10:04:56 -0600
committerBryan Bishop <kanzure@gmail.com>2012-11-30 10:04:56 -0600
commit935384f93186b976dfdeab12f46e30ea51e44a17 (patch)
treecd2bd0ee31f482b0801c27a1a7f41312304e7838 /preprocessor.py
parent44c3eb1ccf58d71344b7e6df8be71147eb1cf4c8 (diff)
update spacing for read_line in preprocessor
Diffstat (limited to 'preprocessor.py')
-rw-r--r--preprocessor.py46
1 files changed, 23 insertions, 23 deletions
diff --git a/preprocessor.py b/preprocessor.py
index 80622e2e2..150ea951d 100644
--- a/preprocessor.py
+++ b/preprocessor.py
@@ -552,34 +552,34 @@ def include_file(asm):
read_line(line)
def read_line(l):
- # strip and store any comment on this line
- if ";" in l:
- asm, comment = separate_comment(l)
- else:
- asm = l
- comment = None
+ # strip and store any comment on this line
+ if ";" in l:
+ asm, comment = separate_comment(l)
+ else:
+ asm = l
+ comment = None
- # handle INCLUDE as a special case either at the start of the line or
- # after the first character in the line (like a tab)
- if "INCLUDE \"" in [asm[0:9], asm[1:9]]:
- include_file(asm)
+ # handle INCLUDE as a special case either at the start of the line or
+ # after the first character in the line (like a tab)
+ if "INCLUDE \"" in [asm[0:9], asm[1:9]]:
+ include_file(asm)
- # convert text to bytes when a quote appears (not in a comment)
- elif "\"" in asm:
- quote_translator(asm)
+ # convert text to bytes when a quote appears (not in a comment)
+ elif "\"" in asm:
+ quote_translator(asm)
- # check against other preprocessor features
- else:
- macro, token = macro_test(asm)
+ # check against other preprocessor features
+ else:
+ macro, token = macro_test(asm)
- if macro:
- macro_translator(macro, token, asm)
- else:
- sys.stdout.write(asm)
+ if macro:
+ macro_translator(macro, token, asm)
+ else:
+ sys.stdout.write(asm)
- # show line comment
- if comment != None:
- sys.stdout.write(comment)
+ # show line comment
+ if comment != None:
+ sys.stdout.write(comment)
for l in sys.stdin:
read_line(l)