hey it is required to create a syntax checker which reports about common errors like unbalanced paranthesis etc. i hav created d following code, which complies finely and produces correct output for generally, but when i enter d source code as input, it produces wrong input, so csn u help me find d bugs:-
Code:
#include<stdio.h>
#define IN 1
#define OUT 0
int main()
{
int c=0,prevc=0,prevprevc=0,sstate=OUT,dstate=OUT,cstate=OUT,count[256],boo=OUT,i=0,asciieq=0,line=0;
Leave a comment: