diff options
author | David Robillard <d@drobilla.net> | 2011-01-09 16:47:59 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2011-01-09 16:47:59 +0000 |
commit | ceebe5e8bd7593b99d2a4c8b8fa733a85e0eae81 (patch) | |
tree | feba5ceae956c5a5978c4929aadcc2f2ad83af96 /src/resp.cpp | |
parent | 8f7ed82fdbfea13d9fce553dc42db5b8d33e4bd9 (diff) | |
download | resp-ceebe5e8bd7593b99d2a4c8b8fa733a85e0eae81.tar.gz resp-ceebe5e8bd7593b99d2a4c8b8fa733a85e0eae81.tar.bz2 resp-ceebe5e8bd7593b99d2a4c8b8fa733a85e0eae81.zip |
Partially resurrect CPS translation pass.
git-svn-id: http://svn.drobilla.net/resp/trunk@405 ad02d1e2-f140-0410-9f75-f8b11f17cedd
Diffstat (limited to 'src/resp.cpp')
-rw-r--r-- | src/resp.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/resp.cpp b/src/resp.cpp index 2c26927..2b08fc3 100644 --- a/src/resp.cpp +++ b/src/resp.cpp @@ -78,6 +78,7 @@ print_usage(char* name, bool error) os << " -P Parse only" << endl; os << " -T Type check only" << endl; os << " -R Reduce to simpler forms only" << endl; + os << " -C Convert to CPS only" << endl; os << " -L Lambda lift only" << endl; os << " -S Compile to assembly only (do not execute)" << endl; @@ -96,7 +97,8 @@ main(int argc, char** argv) return print_usage(argv[0], false); } else if (argv[i][0] != '-') { files.push_back(argv[i]); - } else if (!strncmp(argv[i], "-L", 3) + } else if (!strncmp(argv[i], "-C", 3) + || !strncmp(argv[i], "-L", 3) || !strncmp(argv[i], "-P", 3) || !strncmp(argv[i], "-R", 3) || !strncmp(argv[i], "-S", 3) |