parser-c 0.3.0

Macros for parser-c.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
-- Bug report:
-- 1. Parse empty file.
-- 2. Then try to print filename.
-- 3. Get error.
-- See attachment.
module Main where
import Language.C
import Language.C.System.GCC

-- Create empty file 'test.c' before
main :: IO ()
main = do
    Right tu <- parseCFilePre "test.c"
    print $ let Just fname = fileOfNode tu in fname