1. Change graph and code of scanner in a way
that identifies decimal numbers in form :
.d+
d+.
d+.d+
2. Change graph and code of scanner in a way
that an id (identifier) can contain underline. (attention: underline at first
or end of id is not allowed, sequential underlines are not allowed too.)
3. Change graph and code of scanner in a way
that identifies comment in /**/ form.
4. Change graph and code of scanner in a way
that if “ was needed in string, it comes 2 “ s.
5. In a programming language, every Id
starts with an alphabet. Numbers of characters in an id is maximum 4. Second
and 4th character can be digits , but number of digits can not be
more than
Alphabets. Draw the graph and change scanner
code.
Sun | Mon | Tue | Wed | Thu | Fri | Sat |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | 7 |
8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 | 16 | 17 | 18 | 19 | 20 | 21 |
22 | 23 | 24 | 25 | 26 | 27 | 28 |
29 | 30 | 1 | 2 | 3 | 4 | 5 |