From last few days I am trying make the parser without using the
functions of C but using the inbuilt functions of Flex and Bison. I
learnt about how to define tokens by go through the .l and .y files. I
want use the inbuilt functions and don’t wanna go for hard-coding.

The read operation of the file is almost done. But I am struggling
with the write operation. It uses the fput() function. The problem
that I am facing is that it is getting compiled, but changes are not
viewed inside the file.

I think I don’t know to make use of the fput() as I am not much
familair with file handling. Will the catch the things very soon 🙂