Interpreter for C89 in Haskell
Run the interpreter by giving the source file path in the first positon of the arguments.
Eg.
$ runhaskell Main.hs test.c
Unsupported (yet) features
goto
(Not in current plan)- Function pointer (In plan)
- Default parameters (In plan)
do..while
(Coming)#include
(Coming)struct
(Coming)- Access Containment. (Will never be implemented)
- Distinguish between
int
,long int
andshort int
(Not in current plan) - "Real world"
int
(one that can over/underflow). (Not in current plan)
... and the list goes on
And, uhm, the memory allocated for arrays wouldn't be recycled ... yet, due to some ... lapses.