Question: using java eclipse I STC 3:26 PM @ @ 81% Ims.yic.edu.sa 1. Learning objectives - Be able to understand and imitate the process of language

 using java eclipse I STC 3:26 PM @ @ 81% Ims.yic.edu.sa

using java eclipse

I STC 3:26 PM @ @ 81% Ims.yic.edu.sa 1. Learning objectives - Be able to understand and imitate the process of language recognizer 2. Learning outcomes: CLO 2.01 - Design and develop small scale programming language PROBLEM DESCRIPTION: You will write a program that will imitate a segment of a compiler. Using any programming language of your choice, write a program that will function as a language recognizer, where it will be able to verify if a given word is a valid Java identifier. Java allows identifier to start with alphabets, or $, and not allowing any keyword or special word to be used as identifier. SAMPLE OF OUTPUT: Welcome to Java identifier verification. Another word? (Yes - 1, No - 0):> 1 Please enter a word Verify : 123abc : Sorry! 123abc is Not a valid identifier Another word? (Yes - 1, No - 0):> 1 Please enter a word Verify : $DAD : $DAD is a Valid identifier Another word? (Yes - 1, No - 0):> 1 Please enter a word Verify : class : class is a Not Valid identifier Another word? (Yes - 1, No - 0):> 0 Identifier verified: 3 Thank you for using my identifier checker. Page 2 of 2

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!