Question: the micro language has the following lexical and syntax rules. A program begins with the word main followed by a sequence of statements within {}block.

the micro language has the following lexical and syntax rules. A program begins with the word main followed by a sequence of statements within {}block. the block {} has at least one statement. there are five types of statements. they are assignment statement, read statement, write statement, if- else statement, and while statement.

the micro language has the following lexical and syntax rules. A program

This programming assignment is about designing a scanner and a top down parser for a small scale language called XMicro. This language is an extension of the language discussed in the class. Your assignment is to extend and modify the scanner and the parser discussed in the class, so that the new scanner and the parser will scan and parse the XMicro language programs. The X Micro language has the following lexical and syntax rules. A program begins with the word main followed by a sequence of statements within block. The {} block has at least one statement. There are five types of statements. They are assignment statement, read statement, write statement, if-else statement, and while statement An identifier consists of lower or upper case letters and digits. An identifier begins with a letter. The identifiers are case sensitive. The following identifiers are considered reserved words with predefined meaning: main, read, write, if, else, while. This programming assignment is about designing a scanner and a top down parser for a small scale language called XMicro. This language is an extension of the language discussed in the class. Your assignment is to extend and modify the scanner and the parser discussed in the class, so that the new scanner and the parser will scan and parse the XMicro language programs. The X Micro language has the following lexical and syntax rules. A program begins with the word main followed by a sequence of statements within block. The {} block has at least one statement. There are five types of statements. They are assignment statement, read statement, write statement, if-else statement, and while statement An identifier consists of lower or upper case letters and digits. An identifier begins with a letter. The identifiers are case sensitive. The following identifiers are considered reserved words with predefined meaning: main, read, write, if, else, while

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 Databases Questions!