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:
jfiat
2008-12-09 17:47:17 +00:00
parent 0726470766
commit 4d6df90e6c

View File

@@ -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: 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> <code>
Upper_identifier, Lower_identifier, Decimal_constant, Octal_constant, Word: INTEGER is unique Upper_identifier, Lower_identifier, Decimal_constant, Octal_constant, Word: INTEGER is unique
... ...
distinguish_case distinguish_case
keywords_distinguish_case keywords_distinguish_case
put_expression("+('0'..'7'"), Octal_constant, "Octal") put_expression("+('0'..'7'"), Octal_constant, "Octal")
@@ -526,7 +528,7 @@ The following extract from a typical descendant of [[ref:/libraries/lex/referenc
<code> <code>
Identifier, Letter, Digit, Underlined, Suffix, Suffix_list: INTEGER Identifier, Letter, Digit, Underlined, Suffix, Suffix_list: INTEGER
build_identifier is build_identifier
do do
interval ('a', 'z'); Letter := last_created_tool interval ('a', 'z'); Letter := last_created_tool
interval ('0', '9'); Digit := last_created_tool interval ('0', '9'); Digit := last_created_tool