Why do you want to make such a Pascal to C converter?
If you just want to run several Pascal programs, it’s easier to use (or improve) existing compilers, for example gpc , or Pascal in C, for example p2c
If you want to convert Pascal handwritten code into human-readable (and improved) C code, the task is much more complicated; in particular, you probably want to convert indents, comments, keep as many names as possible, but avoid collisions with system names, etc.
, . , flex + bison ANTLR ( ). , ( , Pascal ).
Pascal, LLVM (, , GCC )