Artifact 03cc64110b99ec8abe9fde2d221fcd3d75d8e84ecbac34ae148228114a04fb39:
- File todo.md — part of check-in [bebe578be5] at 2026-09-27 09:10:54 on branch tip-759b_tcl90 — retry (was crlf end of lines) (user: Florentis, size: 1213) [annotate] [blame] [check-ins using]
A faire :
Pour
substcommand :- in tcl.h :
#define TCL_SUBST_EXPR 8in tcl.h (~ line 510)#define TCL_SUBST_ALL 15in tcl.h (~ line 510)- in tclParse.c :
- func ParseToken :
int noSubstExpr = !(flags & TCL_SUBST_EXPR);at the begining- add a test like :
if (noSubstExpr) { tokenPtr->type = TCL_TOKEN_TEXT; tokenPtr->size = 1; parsePtr->numTokens++; src++; numBytes--; continue; }
- func TclSubstParse : ??? Must be checked specifically to see what has to be done (how does this func works ?)
- in tclCompCmdsSZ.c, func TclSubstCompile
- create a case for TCL_TOKEN_SUB_EXPR (and then call Tcl_CompileExpr)
Pour
info incompletecommand :- understand the way it works
- create test cases
Pour tcl-parser :
- try to compile it with the tip-759b branch
- test
Memory management :
- in tclParse.c, ParseToken :
- add
Tcl_FreeParse(exprParsePtr);
User Interface :
- in tclParse.c :
- func ParseToken :
- decide if, after a ParseExpr error, we fall back to COMMAND case.
- in tclCompExpr.c