[project @ 1996-01-08 20:28:12 by partain]
[ghc-hetmet.git] / ghc / compiler / yaccParser / README.debug
diff --git a/ghc/compiler/yaccParser/README.debug b/ghc/compiler/yaccParser/README.debug
new file mode 100644 (file)
index 0000000..17503dd
--- /dev/null
@@ -0,0 +1,12 @@
+If you want to debug...
+
+* the lexer:
+
+    run "flex" with the -d flag; compile as normal thereafter
+
+* the parser:
+
+    compile hsparser.tab.c and main.c with EXTRA_CC_OPTS=-DHSP_DEBUG
+
+    run hsp with -D; it's dumping the output into *stdout*,
+    so you have to do something weird to look at it.