Tuesday, July 28, 2009

Parse a C program using compiler tools - Lex, YACC, Flex, Bison?

I have to write a C program (using compiler tools - Lex, YACC, Flex, Bison) that will parse a C program and identify how many PHP files will be required for doing the same job in PHP. It is to be assumed that the C Program does not have any user-defined functions other than main().





As i am beginner in lex %26amp; yacc please help me to solve the problem.


Thnaks

Parse a C program using compiler tools - Lex, YACC, Flex, Bison?
What is the criteria that the program will use to determine that one or two lines of C will translate into multiple *files* in PHP? This is the part of your question that really throws me for a loop. A program can only do something that you can explain how to do yourself. So explain it, in plain english, how you would look at a C program and decide, "ah, that's three PHP files right there."

hawthorn

No comments:

Post a Comment