Rain1213 / Design-Of-Language-Processor

Code and Concepts to understand the designing and processing of different language processors.
7 stars 0 forks source link

fseek not working #1

Open Vaspar-a opened 3 years ago

Vaspar-a commented 3 years ago

Lexical Analyzer.c not generating all tokens. fseek not working as per expectations on line 145, 167, 174, 185, 192

Rain1213 commented 3 years ago

Dear Vaspar Could you please share your output along with the c file you have used as your test case?

Vaspar-a commented 3 years ago

Output: image

C file used as test case:

/* compiler
Practical-4*/
int abcd#fgh();

void main()
{
int a; //variable declaration
float 1b, c3 = 10.2;
double _ae6 = 10.20.03;
printf ("hi");
a = a + 20;
}
Rain1213 commented 3 years ago

image

Dear Vaspar Things seem to be working perfectly in my case. I am running the following in VS Code. I am using the powershell terminal in my case.

There is this one error of abcd#fgh converting into 2 identifiers 'abcd' and 'fgh'. I will have a look...

Rain1213 commented 3 years ago

image

I seem to have fixed the issue with #. Please have a look. abcd#fgh is now considered as an invalid symbol