Artifact
cc858b835f18453ce89ae38058cd3466985c4c7c:
Wiki page
[Parsing in detail] by
dgp
2016-06-25 19:12:52.
D 2016-06-25T19:12:52.269
L Parsing\sin\sdetail
N text/x-markdown
P 43fa8c63215b00906ab420c571a9ec2d2060a1ed
U dgp
W 631
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 Unicode codepoint sequence of known length.
Outputs
=====
- **Code:** integer value
- **Result:**
- **Parse tree** that partitions the input script into substrings
that are the structural parts of the script.
Steps
====
1. Comments
Z fe79c8664f1344fb7103a5ec9f236ee5