The Gateway to Computer Science Excellence
0 votes

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 (60.6k points)
edited by | 12 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,833 questions
57,713 answers
107,655 users