views:

131

answers:

2

Anybody knows from where I can download a Lex and Yacc program(the source code) for complete syntax checking of a C program?

Pls post the link as comment

A: 

That's no so easy -- there are some things in C which aren't really suitable for lex/yacc even if you can trick your path away. You can check older releases of gcc it used to be written with yacc; newer release use an hand written parser (I don't remember when they made the switch for C, they did it for C++ around 3.4).

AProgrammer
A: 

Just use GCC. It is happy to check the complete syntax of a program. You can ignore the fact that it will also compile it for free.

Ira Baxter