From ceebe5e8bd7593b99d2a4c8b8fa733a85e0eae81 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 9 Jan 2011 16:47:59 +0000 Subject: Partially resurrect CPS translation pass. git-svn-id: http://svn.drobilla.net/resp/trunk@405 ad02d1e2-f140-0410-9f75-f8b11f17cedd --- src/resp.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/resp.cpp') 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) -- cgit v1.2.1