mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2025-08-19 21:03:42 -07:00
copy comments over
This commit is contained in:
parent
94f0b21265
commit
544db072d0
2 changed files with 383 additions and 6 deletions
|
@ -113,7 +113,7 @@ class RR:
|
||||||
output(f"Here({self.name}, []{{return {self.to_cpp(ast[1])};}})")
|
output(f"Here({self.name}, []{{return {self.to_cpp(ast[1])};}})")
|
||||||
elif f in ("MQSpiritSharedStatueRoom", "MQSpiritSharedBrokenWallRoom"):
|
elif f in ("MQSpiritSharedStatueRoom", "MQSpiritSharedBrokenWallRoom"):
|
||||||
output(f"{f}({self.to_cpp(ast[1])}, []{{return {self.to_cpp(ast[2])};}})")
|
output(f"{f}({self.to_cpp(ast[1])}, []{{return {self.to_cpp(ast[2])};}})")
|
||||||
elif f != "--":
|
elif f != "//":
|
||||||
if len(ast) != 1:
|
if len(ast) != 1:
|
||||||
print("expected atom, got tree", ast)
|
print("expected atom, got tree", ast)
|
||||||
elif f.isupper() or f.isdigit() or f in ("true", "false"):
|
elif f.isupper() or f.isdigit() or f in ("true", "false"):
|
||||||
|
@ -253,7 +253,7 @@ for line in open(argv[1], "r", encoding="ascii"):
|
||||||
if active_rr and not active_rr.ui_name:
|
if active_rr and not active_rr.ui_name:
|
||||||
active_rr.ui_name = line
|
active_rr.ui_name = line
|
||||||
continue
|
continue
|
||||||
if not active_rr or line.startswith("--"):
|
if not active_rr or line.startswith("//"):
|
||||||
continue
|
continue
|
||||||
open_count += line.count('(')
|
open_count += line.count('(')
|
||||||
close_count += line.count(')')
|
close_count += line.count(')')
|
||||||
|
|
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue