Artifact
43fa8c63215b00906ab420c571a9ec2d2060a1ed:
Wiki page
[Parsing in detail] by
dgp
2016-06-23 20:45:55.
D 2016-06-23T20:45:55.831
L Parsing\sin\sdetail
U dgp
W 624
The first phase of any Tcl script evaluation is applying
Tcl's parsing rules for breaking the script into its
component parts. Note that the interp is not an
input into the parsing operation. No interp state
has any controlling effect on the way a Tcl script
is parsed. The same string is always parsed into
the same tokens.
Inputs:
* Script - a 'string', that is a finite sequence of Unicode codepoints.
Outputs:
* A sequence/tree of tokens, indicating the structure Tcl parsing rules impose upon the input string. The tokens partition the original string into substrings.
Steps:
# Comments -
Z 48aa626d146c5f56db2324f63b1727e5