summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Wu <lekensteyn@gmail.com>2011-11-27 15:55:20 +0000
committerPeter Wu <lekensteyn@gmail.com>2011-11-27 15:55:20 +0000
commit4e39a4203cc2b1bbd86a35417a087cdb6f9ce4d1 (patch)
treee550037c2136f3188293d714747d0d511ec296b7
parent45e7cba2d7985284cd066033607cb39e772dfaa5 (diff)
downloadpp2cc-4e39a4203cc2b1bbd86a35417a087cdb6f9ce4d1.tar.gz
Updated pp2cc README
-rw-r--r--README22
1 files changed, 10 insertions, 12 deletions
diff --git a/README b/README
index 1a4133d..17e5c18 100644
--- a/README
+++ b/README
@@ -11,16 +11,14 @@ Python is often installed by default on Linux distributions. For Windows, you
probably need to run the installer from the above link. Extract the pycparser
ZIP file (see link above) and copy the pycparser subdirectory to the directory
containing pp2cc.py. pp2cc is a console program, you need to open a terminal
-(or cmd on Windows) to see the output.
+(or cmd on Windows) to see compiler messages.
-Currently, no file is written. All errors and compiled code go to stdout. This
-will be fixed later.
-
-Usage (subject to change)
-=========================
-Compile a program:
-
- python pp2cc.py file.c
-Show the syntax tree (debugging, will be removed):
-
- python pp2cc.py file.c show
+Usage: python pp2cc.py [options] filename..
+Multiple input files can be specified, options can be specified before and
+after filenames.
+Options:
+ -o filename The name of the output file. It defaults to the first
+ input file from which the extension is removed, and .asm is
+ added.
+ --tree Instead of compiling the file into assembly, show the parse
+ tree.