subject

Write regular expressions to capture the following. A) Strings in C. These are delimited by double quotes ("), and may not contain newline characters. They may contain double-quote or back- slash characters if and only if those characters are "escaped" by a pre- ceding backslash. You may find it helpful to introduce shorthand nota- tion to represent any character that is not a member of a small specified set. B) Comments in Pascal. These are delimited by (* and *) or by { and ). They are not permitted to nest. C) Numeric constants in C. These are octal, decimal, or hexadecimal inte- gers, or decimal or hexadecimal floating-point values. An octal integer begins with o, and may contain only the digits 0–7. A hexadecimal integer begins with Ox or Ox, and may contain the digits 0-9 and a/A- f/F. A decimal floating-point value has a fractional portion (beginning with a dot) or an exponent (beginning with E or e). Unlike a decimal integer, it is allowed to start with 0. A hexadecimal floating-point value has an optional fractional portion and a mandatory exponent (begin- ning with P or p). In either decimal or hexadecimal, there may be digits .f (both self is given in decimal, with an optional leading + or - sign. An integer 1 indicating "long") or LL or 11 (indicating "long long"). A floating point value may end with an optional Forf (indicating "float-single (0) D) Floating-point constants in Ada. These match the definition of real in Example 2.3, except that (1) a digit is required on both sides of the dec- imal point, (2) an underscore is permitted between digits, and (3) an alternative numeric base may be specified by surrounding the nonex- ponent part of the number with pound signs, preceded by a base in upper- and lowercase) are permitted as digits. Use of these letters in an inappropriate (e. g., decimal) number is an error, but need not be caught by the scanner. E) Inexact constants in Scheme. Scheme allows real numbers to be ex. plicitly inexact (imprecise). A programmer who wants to express all constants using the same number of characters can use sharp signs (#) in place of any lower-significance digits whose values are not known. A base-10 constant without exponent consists of one or more digits fol- lowed by zero of more sharp signs. An optional decimal point can be placed at the beginning, the end, or anywhere in-between. (For the record, numbers in Scheme are actually a good bit more complicated than this. For the purposes of this exercise, please ignore anything you may know about sign, exponent, radix, exactness and length specifiers, and complex or rational values). F) Financial quantities in American notation. These have a leading dollar sign ($), an optional string of asterisks (*-used on checks to discour- age fraud), a string of decimal digits, and an optional fractional part consisting of a decimal point (.) and two decimal digits. The string of digits to the left of the decimal point may consist of a single zero (0). Otherwise it must not start with a zero. If there are more than three digits to the left of the decimal point, groups of three (counting from the right) must be separated by commas (,). Example: $**2,345.67. (Feel free to use "productions to define abbreviations, so long as the language remains regular).

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 01:00
Let r be a robotic arm with a fixed base and seven links. the last joint of r is a prismatic joint, the other ones are revolute joints. give a set of parameters that determines a placement of r. what is the dimension of the configuration space resulting from your choice of parameters?
Answers: 3
question
Computers and Technology, 23.06.2019 11:30
Me dangers of social media and the internetexplain what each means: 1) social media and phones have become an addiction.2) outside people have access to you all the time.3) cyberstalking4) cyberbullying5) catphishing6) viruses7) identity theft8) credit card fraud9) hacking10) money schemes
Answers: 1
question
Computers and Technology, 24.06.2019 15:00
When a presentation is being planned, it is important to ensure that it covers all available information. appeals to the audience. uses multimedia tools. entertains the audience.
Answers: 1
question
Computers and Technology, 24.06.2019 17:00
The length of time that a slide appears before automatically advancing to the next slide can be set in the timing group under the transitions tab. transition to this slide group under the transitions tab. timing group in the master slide view. transition to this slide group in the master slide view.
Answers: 1
You know the right answer?
Write regular expressions to capture the following. A) Strings in C. These are delimited by double q...
Questions
question
Health, 04.11.2020 21:20
question
Mathematics, 04.11.2020 21:20
question
Biology, 04.11.2020 21:20
question
Mathematics, 04.11.2020 21:20
question
Mathematics, 04.11.2020 21:20
Questions on the website: 13722363