The Gateway to Computer Science Excellence
0 votes
3 views

Write character classes for the following sets of characters:

  1. The first ten letters (up to "j" ) in either upper or lower case.
  2. The lowercase consonants.
  3. The "digits" in a hexadecimal number (choose either upper or lower case for the "digits" above 9).
  4. The characters that can appear at the end of a legitimate English sentence (e.g., exclamation point).

The following exercises, up to and including Exercise $3.3.10$, discuss the extended regular-expression notation from Lex (the lexical-analyzer generator that we shall discuss extensively in Section $3.5)$. The extended notation is listed in Fig.$3.8$.

in Compiler Design by Veteran (54.9k points)
edited by | 3 views

Please log in or register to answer this question.

Related questions

Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true
50,645 questions
56,542 answers
195,693 comments
101,537 users