summaryrefslogtreecommitdiff
path: root/ghc/compiler/yaccParser/README.debug
blob: 17503dd4b91e5c6ac2e35fdd8a97cf028d1aab94 (plain)
1
2
3
4
5
6
7
8
9
10
11
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.