Question: ( a ) Consider the following regular expression for oating - literals in the Low - Level Virtual Machine ( LLVM ) language. [

"(a) Consider the following regular expression for oating- literals in the Low-Level Virtual Machine (LLVM) language. [12]
(-?[0-9]+\.[0-9]+([eE][-+][0-9]+)?)|(0xK?[0-9A-Fa-f]+)
Give three dierent input strings that match this regular expression. Your strings must match the regular expression in dierent ways, i.e., by using dierent alternatives or options. For the purposes of this question, choosing another character in a character class does not count as a dierence, nor does repeating a repeat QK10 ed construct a dierent number of times."

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!