Functions | |
def | content (line) |
def | flush_output () |
def | format_as_block (comment_block) |
def | indentation_of (line) |
def | is_comment (line) |
def | isnt_comment (line) |
def | more_input_available () |
def | next_line (predicate) |
def | peek () |
def | read_line () |
def | write (line) |
Variables | |
list | comment_block = [] |
string | comment_regex = r'^(\s*)//\s(.*)$' |
lines = input_file.readlines() | |
list | output_lines = [] |
def change-comments.content | ( | line | ) |
Definition at line 74 of file change-comments.py.
def change-comments.flush_output | ( | ) |
Definition at line 50 of file change-comments.py.
def change-comments.format_as_block | ( | comment_block | ) |
Definition at line 78 of file change-comments.py.
def change-comments.indentation_of | ( | line | ) |
Definition at line 70 of file change-comments.py.
def change-comments.is_comment | ( | line | ) |
Definition at line 59 of file change-comments.py.
def change-comments.isnt_comment | ( | line | ) |
Definition at line 62 of file change-comments.py.
def change-comments.more_input_available | ( | ) |
Definition at line 40 of file change-comments.py.
def change-comments.next_line | ( | predicate | ) |
Definition at line 65 of file change-comments.py.
def change-comments.peek | ( | ) |
Definition at line 34 of file change-comments.py.
def change-comments.read_line | ( | ) |
Definition at line 37 of file change-comments.py.
def change-comments.write | ( | line | ) |
Definition at line 47 of file change-comments.py.
list change-comments.comment_block = [] |
Definition at line 97 of file change-comments.py.
string change-comments.comment_regex = r'^(\s*)//\s(.*)$' |
Definition at line 57 of file change-comments.py.
change-comments.lines = input_file.readlines() |
Definition at line 32 of file change-comments.py.
list change-comments.output_lines = [] |
Definition at line 45 of file change-comments.py.