X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=ghc%2Fcompiler%2FyaccParser%2FREADME.debug;fp=ghc%2Fcompiler%2FyaccParser%2FREADME.debug;h=17503dd4b91e5c6ac2e35fdd8a97cf028d1aab94;hb=e7d21ee4f8ac907665a7e170c71d59e13a01da09;hp=0000000000000000000000000000000000000000;hpb=e48474bff05e6cfb506660420f025f694c870d38;p=ghc-hetmet.git diff --git a/ghc/compiler/yaccParser/README.debug b/ghc/compiler/yaccParser/README.debug new file mode 100644 index 0000000..17503dd --- /dev/null +++ b/ghc/compiler/yaccParser/README.debug @@ -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.