diff options
| author | Bruce Hill <bitbucket@bruce-hill.com> | 2018-07-17 17:53:07 -0700 |
|---|---|---|
| committer | Bruce Hill <bitbucket@bruce-hill.com> | 2018-07-17 17:53:17 -0700 |
| commit | 854b2a652ff473c9d2eaa3222008d4baed36ae63 (patch) | |
| tree | 82c14202cb84cbddfdca3f3812cee90ec0ba95f5 /tools/upgrade.nom | |
| parent | 77a338c1673ae5815ea2124f709cc657da30e8c8 (diff) | |
Fixed a bug in text escapes in nomsu codegen.
Diffstat (limited to 'tools/upgrade.nom')
| -rw-r--r-- | tools/upgrade.nom | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tools/upgrade.nom b/tools/upgrade.nom new file mode 100644 index 0000000..e55d835 --- /dev/null +++ b/tools/upgrade.nom @@ -0,0 +1,10 @@ +use "core" +use "compatibility" +use "lib/os.nom" + +for %path in (=lua "arg"): + for file %filename in %path: + %tree <- (parse (read file %filename) from %filename) + %tree <- (%tree upgraded from %tree.version to (Nomsu version)) + say "#!/usr/bin/env nomsu -V\(Nomsu version)\n\(%tree as nomsu)" + |
