Releases: iiicp/lcc
Releases · iiicp/lcc
improve error diagnostic
1, Add a diagnostic engine
2,An error was encountered during the parsing process, and the parser will still continue
eg: output the following error
[Parser.cc:274]:../tests/c/decl_09.c:1:1: error: expect storage class or type specifier or qualifier
main(void) {
^
[Parser.cc:2141]:../tests/c/decl_09.c:5:9: error: the beginning of external declaration
int f();{}
^
[Parser.cc:2053]:../tests/c/decl_09.c:8:9: error: expect semi after this
int a:12
^
lcc-v0.3
features:
support almost c99 features
add dumpTokens and dumpAst option
you can ./lcc --dumpTokens test.c or ./lcc --dumpAst test.c or ./lcc --dumpTokens --dumpAst test.c
bug fix:
1, fix typedef
2, fix complex function declarator
3, improve declarator and abstract declarator
lcc-v0.2
lcc-v0.1
1, 支持mac/linux/windows构建
2, 能够运行一些简单的C程序