Manifest of check-in
[67ae611ad6]
- * generic/tclCompExpr.c: Added a "parseOnly" flag argument to
ParseExpr() to indicate whether the caller is Tcl_ParseExpr(), with an
end goal of filling a Tcl_Parse with Tcl_Tokens representing the
parsed expression, or TclCompileExpr() with the goal of compiling and
executing the expression. In the latter case, more aggressive
conversion of QUOTED and BRACED lexeme to literals is done. In the
former case, all such conversion is avoided, since Tcl_Token production
would revert it anyway. This enables simplifications to the
GenerateTokensForLiteral() routine as well.
by
dgp on
2007-07-11 14:43:46.
B c05e2d8a1fb7e2374bfb1993e27cba7b0caa340b
C \s\s\s\s\s\s\s\s*\sgeneric/tclCompExpr.c:\s\s\s\s\s\s\s\sAdded\sa\s"parseOnly"\sflag\sargument\sto\n\s\s\s\s\s\s\s\sParseExpr()\sto\sindicate\swhether\sthe\scaller\sis\sTcl_ParseExpr(),\swith\san\n\s\s\s\s\s\s\s\send\sgoal\sof\sfilling\sa\sTcl_Parse\swith\sTcl_Tokens\srepresenting\sthe\n\s\s\s\s\s\s\s\sparsed\sexpression,\sor\sTclCompileExpr()\swith\sthe\sgoal\sof\scompiling\sand\n\s\s\s\s\s\s\s\sexecuting\sthe\sexpression.\s\sIn\sthe\slatter\scase,\smore\saggressive\n\s\s\s\s\s\s\s\sconversion\sof\sQUOTED\sand\sBRACED\slexeme\sto\sliterals\sis\sdone.\s\sIn\sthe\n\s\s\s\s\s\s\s\sformer\scase,\sall\ssuch\sconversion\sis\savoided,\ssince\sTcl_Token\sproduction\n\s\s\s\s\s\s\s\swould\srevert\sit\sanyway.\s\sThis\senables\ssimplifications\sto\sthe\n\s\s\s\s\s\s\s\sGenerateTokensForLiteral()\sroutine\sas\swell.\n
D 2007-07-11T14:43:46
F ChangeLog 10774c54a162c14ed1b9662a6109fba7d76b8a53
F generic/tclCompExpr.c 24ae9f5e2b6358092be3e74910e726299dec9dff
P 7b139de96e3e79fe5c7fa17902712b59c2ffb501
U dgp
Z 6d7f873e19981994ef6bb596963ebd8e