about summary refs log blame commit diff stats
path: root/linux/translate_subx_emulated
blob: 78c564d9d6b49f38852480a76eb01c169eb2b9fc (plain) (tree)
1
2
3
4
5
pre { line-height: 125%; }
td.linenos .normal { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
span.linenos { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
td.linenos .special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
.highlight .hll { background-color: #ffffcc }
.highlight .c { color: #888888 } /* Comment */
.highlight .err { color: #a61717; background-color: #e3d2d2 } /* Error */
.highlight .k { color: #008800; font-weight: bold
#!/bin/sh
# Translate given SubX files by running the self-hosted translator in emulated
# mode on Linux or BSD or Mac.
#
# We _could_ generate traces here, but that's often extremely slow.

set -e
set -v

cat $*              |bootstrap/bootstrap run ./braces       > a.braces
cat a.braces        |bootstrap/bootstrap run ./calls        > a.calls
cat a.calls         |bootstrap/bootstrap run ./sigils       > a.sigils
cat a.sigils        |bootstrap/bootstrap run ./tests        > a.tests
cat a.tests         |bootstrap/bootstrap run ./assort       > a.assort
cat a.assort        |bootstrap/bootstrap run ./dquotes      > a.dquotes
cat a.dquotes       |bootstrap/bootstrap run ./assort       > a.assort2
cat a.assort2       |bootstrap/bootstrap run ./pack         > a.pack
cat a.pack          |bootstrap/bootstrap run ./survey_elf   > a.survey
cat a.survey        |bootstrap/bootstrap run ./hex          > a.elf

chmod +x a.elf
class="n">wid) def draw_file(self): self.win.addnstr(self.y, self.x, "this is a file.", self.wid) def draw_directory(self): self.target.load_content_once() for i in range(self.hei): try: f = self.target[i] except IndexError: break self.win.addnstr(self.y + i, self.x, self.target[i].path, self.wid)