16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
-
+
+
|
<h1>Directly Depends On Private Interface of</h1>
* [Parsing and Evaluation]
* [Numbers]
<h1>Discussion</h1>
This is the parser for Tcl values that indicate a position in a Tcl list
or string. Recognizes the format (<b>end</b>|<i>integer</i>)([<b>-+</b>]<i>integer</i>)?
or string. Recognizes the format
(<b>end</b>|<i>integer</i>)((<b>+</b>/<b>-</b>)<i>integer</i>)?
It operates on numbers in the int range. When Tcl lists and string are allowed to
have length greater than <b>INT_MAX</b>, these routines will require an interface
change.
The parser as written favors code re-use and clarity over absolute performance seeking.
|