omidgl Level: Guest

|
New Download: C Language Parser
New download available:
C Language Parser
Description:
This is my first work in language design field. It was my "Language Implementation and Design" project in IUST University. It takes a standard C program. Then it recognizes variables, constants, statements, loops and other standard programming structures. In each step it tries to simplify the current step by replacing equals in the language table like :
VarDecl ----> Type ID;
VarDecl ----> Type ID[num];
Expr ----> ID = ID
Expr ----> ID = num
Stmt ----> If Expr StmtList else StmtList
At the end if the given program riches the "Program" state, then it's a valid C program. Otherwise it's not acceptable.
|