Question: If you don't know leave it for someone else: In this problem you will be designing code that should be able to take in a

If you don't know leave it for someone else:

In this problem you will be designing code that should be able to take in a file that is analyzed for lexical and syntactical correctness. This programming language should allow for the following type of statements:

switch foreach for while do-while block if assignment return

Imagine this programming language also includes the following rules:

VOID MAIN '(' ')' '{' { ; } '}'

*** Code should be able to detect syntax and lexical errors. You may choose the syntactical structure of each statement, but they must be that of another programming language that you specify in the comments and in a word doc where you list the grammar rules of your language.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!