mirror of
https://github.com/EiffelSoftware/eiffel-org.git
synced 2025-12-06 23:02:28 +01:00
Author:admin
Date:2008-12-09T17:47:17.000000Z git-svn-id: https://svn.eiffel.com/eiffel-org/trunk@132 abb3cda0-5349-4a8f-a601-0c33ac3a8c38
This commit is contained in:
@@ -445,7 +445,9 @@ Class [[ref:/libraries/lex/reference/scanning_chart|SCANNING]] , as studied abov
|
||||
The following extract from a typical descendant of [[ref:/libraries/lex/reference/metalex_chart|METALEX]] illustrates the process of building a lexical analyzer in this way:
|
||||
<code>
|
||||
Upper_identifier, Lower_identifier, Decimal_constant, Octal_constant, Word: INTEGER is unique
|
||||
|
||||
...
|
||||
|
||||
distinguish_case
|
||||
keywords_distinguish_case
|
||||
put_expression("+('0'..'7'"), Octal_constant, "Octal")
|
||||
@@ -526,7 +528,7 @@ The following extract from a typical descendant of [[ref:/libraries/lex/referenc
|
||||
<code>
|
||||
Identifier, Letter, Digit, Underlined, Suffix, Suffix_list: INTEGER
|
||||
|
||||
build_identifier is
|
||||
build_identifier
|
||||
do
|
||||
interval ('a', 'z'); Letter := last_created_tool
|
||||
interval ('0', '9'); Digit := last_created_tool
|
||||
|
||||
Reference in New Issue
Block a user