Question: 1. Create a regular expression that accepts a Java-style Identifier. Identifiers are used for the names of classes, variables, and more. Make sure to define

1. Create a regular expression that accepts a Java-style Identifier. Identifiers are used for the names of classes, variables, and more. Make sure to define your sets and use them in your expression. What is the regular expression?

2. The COBOL Programming Language has fallen out of favor, but, for a long time, it was the language used for business applications. COBOL has a very interesting identifier format. COBOL identifiers must start with a letter and then can be followed by a series of letters, numbers or dashes (minus sign). There is one restriction: dashes cannot appear next to each other. Create a regular expression for COBOL identifiers. Here are some examples: Aliens, First-Name, Tax-Amount, Average-Test-Score What is the regular expression?

3. Draw a FINITE AUTOMATA for #1

4. Draw a FINITE AUTOMATA for #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!