Please note that this project is unstable, eg the APIs and internal logic can be changed.
In order to build MicroC please use Rebar.
./rebar compile
There is tree different APIs for the lexer, parser, syntax- and semantic analyze:
> microc:lex(Filename). %% Returns a list with tokens
> microc:parse(Filename). %% Returns a parse tree
> microc:analyze(Filename). %% Returns an abstract syntax tree