C Language Parser
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
About this post
Posted: 2019-08-29
By: omidgl
Viewed: 274 times
Categories
Attachments
cparser_src.zip
Posted: 8/29/2019 10:19:22 AM
Size: 5,314 bytes
Special Instructions
This code originally appeared on AndreaVB.com, and has been republished here with the permission of Andrea Tincani.
Loading Comments ...
Comments
No comments have been added for this post.
You must be logged in to make a comment.