Correct accidental editing of generate_ast.py introduced in commit 705f669
authorNick Downing <nick@ndcode.org>
Sat, 26 Jan 2019 22:56:00 +0000 (09:56 +1100)
committerNick Downing <nick@ndcode.org>
Sat, 26 Jan 2019 22:56:52 +0000 (09:56 +1100)
generate_ast.py

index 9c5f0e8..f9a633b 100755 (executable)
@@ -94,20 +94,21 @@ while len(line):
       base_classes[-2][class_name].extend(fields)
 
       sys.stdout.write(
-        '''{0:s}def __init__(
-{1:s}  self,
-{2:s}  tag = '{3:s}',
-{4:s}  attrib = {{}},
-{5:s}  text = '',
-{6:s}  children = []{7:s}
-{8:s}):
-{9:s}  {10:s}.__init__(
-{11:s}    self,
-{12:s}    tag,
-{13:s}    attrib,
-{14:s}    text,
-{15:s}    children{16:s}
-{17:s}  )
+        '''{0:s}# GENERATE ELEMENT({1:s}) BEGIN
+{2:s}def __init__(
+{3:s}  self,
+{4:s}  tag = '{5:s}',
+{6:s}  attrib = {{}},
+{7:s}  text = '',
+{8:s}  children = []{9:s}
+{10:s}):
+{11:s}  {12:s}.__init__(
+{13:s}    self,
+{14:s}    tag,
+{15:s}    attrib,
+{16:s}    text,
+{17:s}    children{18:s}
+{19:s}  )
 '''.format(
           indent,
           params,