C Language Parser

By | 2019-08-29

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

FileUploadedSize
996-20190829-101922-cparser_src.zip8/29/2019 10:19:22 AM5314
Author: dwirch

Derek Wirch is a seasoned IT professional with an impressive career dating back to 1986. He brings a wealth of knowledge and hands-on experience that is invaluable to those embarking on their journey in the tech industry.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.