# Ullman (Compiler Design) Edition 2 Exercise 3.3 Question 1 (Page No. 125)

264 views

Consult the language reference manuals to determine

1. the sets of characters that form the input alphabet (excluding those that may only appear in character strings or comments),
2. the lexical form of numerical constants, and
3. the lexical form of identifiers, for each of the following languages:

1.  C
2. C++
3. C#
4. Fortran
5. Java
6. Lisp
7. SQL

retagged

## Related questions

1
291 views
Tagged languages like HTML or XML are different from conventional programming languages in that the punctuation (tags) are either very numerous (as in HTML) or a user-definable set (as in XML). Further, tags can often have parameters. Suggest how to divide the ... you liked that one. <P> into appropriate lexemes. Which lexemes should get associated lexical values,and what should those values be?
Divide the following C + + program: float limitedSquare(x) float x { /* returns x-squared, but never more than 100 */ return (x<=-10.0 || x>=10.0)?100:x*x; } into appropriate lexemes, using the discussion of Section $3.1.2$ as a guide. Which lexemes should get associated lexical values? What should those values be?