|
|
|
|
|
by scott_s
6288 days ago
|
|
It would make data generation more difficult. When you emit any given data, you'd have to know its level of nesting to get the correct number of indents. Using begin and end tokens (whatever they are) makes that much easier. (I actually prefer Python's style of using indentation to indicate blocks, but I recognize generating such code is harder than code with tokens.) |
|
def indent(code): return code.replace('\n', '\n ')