Skip to content
Tcl Source Code Artifact [7cf77ef3f8]
Login

Artifact [7cf77ef3f8]

Artifact 7cf77ef3f8250c2798719938d835008130f3d38b:

Wiki page [List Parsing] by dgp on 2014-09-11 16:33:41.
D 2014-09-11T16:33:41.695
L List\sParsing
P 1df2b2f22da3373d0b37bac026cdbcbc2b0e93a6
U dgp
W 1519
<h1>Source Files</h1>
  *  portions of [/finfo?name=generic/tclUtil.c|tclUtil.c]

<h1>Public Interface</h1>
  *  Tcl_SplitList
  *  Tcl_Merge
  *  Tcl_ScanElement
  *  Tcl_ScanCountedElement
  *  Tcl_ConvertElement
  *  Tcl_ConvertCountedElement

<h1>Private Interface</h1>
  *  TclMaxListLength
  *  TclFindElement
  *  TclFindDictElement
  *  TclCopyAndCollapse
  *  TclScanElement
  *  TclConvertElement

<h1>Directly Depends On Public Interface</h1>
  *  [Parsing and Evaluation]
  *  [string Object Type] 
  *  [Allocation]
  *  [Panic]

<h1>Directly Depends On Private Interface of</h1>
  *  [Parsing and Evaluation]

<h1>Discussion</h1>

These are the utilities that manage the parsing and generation
of string representations of Tcl list values.  They are inherently
limited to the int range for both total bytes in the string and
total elements in the list.  They also are written for the 
Modified UTF-8 encoding expected of string values in Tcl 8.  Any
changes to those assumption in Tcl 9 will require something new,
either revisions to these routines, or development of new routines
with broader capabilities while these persist as limited legacy
support mechanisms.

The public dependence on [Parsing and Evaluation] and [string Object Type]
is entirely in error reporting and could concievably be factored out if
there appears some need for that.

[http://tip.tcl.tk/407|TIP 407] details the functioning and offers
possible changes that might be considered.

Z 8adcfa18dddcef1564351f93a575382f