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
Attachments
File | Uploaded | Size |
---|---|---|
996-20190829-101922-cparser_src.zip | 8/29/2019 10:19:22 AM | 5314 |