c-compiler icon indicating copy to clipboard operation
c-compiler copied to clipboard

A compiler that accepts any valid program written in C. It is made using Lex and Yacc. Returns a symbol table, parse tree, annotated syntax tree and intermediate code.

Results 4 c-compiler issues
Sort by recently updated
recently updated
newest added

2 ganta hogya chala nahi

This change resolves #1 and issues of missing or conflict declarations by following steps: 1. removing the `#include"lex.yy.c"` from yacc file. (For Part 2-6) 2. adding declarations of `char *...

While compiling the y.tab.c file, the following error pop up: /usr/bin/ld: /tmp/ccSDCAsB.o: in function `main': y.tab.c:(.text+0x5605): multiple definition of `main'; /usr/lib/gcc/x86_64-linux-gnu/11/../../../x86_64-linux-gnu/libl.a(libmain.o):(.text.startup+0x0): first defined here collect2: error: ld returned 1 exit...