Question: no c++ JAVA OR ANY language code is required, Only need to design a laxer in tool ANTLR . We define here a programming language

 no c++ JAVA OR ANY language code is required, Only need

no c++ JAVA OR ANY language code is required, Only need to design a laxer in tool ANTLR.

We define here a programming language called C-Minus (or C-, for short), which is a suitable language for a compiler project, which is more complex than the TINY language in that it includes functions and arrays. It is essentially a subset of C, but is missing some important pieces, hence its name. LEXICAL CONVENTIONS OF C- 1. The keywords of the language are the following: alsa 11 lat return void wille All keywords are reserved, and must be written in lowercase. 2. Special symbols are the following: 3. Other tokens are ID and NOX, defined by the following regular expressions: ID - letter letter NUN - digit digit* letter - al..zal. digit -01..19 Lower- and uppercase letters are distinct. 4. White space consists of blanks, newlines, and tabs. White space is ignored except that it must separate ID'S, NUK's, and keywords. 5. Comments are surrounded by the usual C notations /*...* 1. Comments can be placed anywhere white space can appear (that is, comments cannot be placed within tokens) and may include more than one line. Comments may not be nested

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!