Tcl code to process a template file with conditions limited to if/foreach.

Hi So this code should be in TCL . I have some template files. which has some text lines as tcl template and those lines are wrapped in some conditions/logic. Now my code should parse each line and if its plain text should print out as it is in another file but if the lines are conditional then it should print out in an output file text lines accordingly if the condition satisfies or not. But also make sure I want to process only if else and foreach functionality. They can be nested but in if/else / foreach there should not be any other nested conditionality other than if-else/foreach. For example

Input file format :



if {$me ==1} {

puts "ok good"

} else {

outs "not good"


so the output file should look something like this based on conditionality



ok good




Not Good

Evner: Perl

Se mere: parse java text file code, read process text file vbs, process text file, upload file php process ajax, read text file code, vbs process text file, exe file code, code merged text file, file upload process, convert simulink file code, vbscript process text file, vbs script process text file, windows list process text file, java code parse text file, code site template, phpajax file upload process bar, code photoshop template work, check check code process design, word count text file code, css code email template

Om arbejdsgiveren:
( 27 bedømmelser ) beaverton, United States

Projekt ID: #13144276

3 freelancere byder i gennemsnit $180 på dette job

$180 USD in 2 dage
(1 bedømmelse)

Hi, I am competitive to this kind of task, can take good care of this project. In fact, I already done related to this job before. Let me know the best of your time so we can discuss further based on your requirements Flere

$249 USD in 3 dage
(3 bedømmelser)

Hello. I have a few big projects in Tcl. Here's one: [login to view URL] I can do the whole task in a work day but it would help if you have a few more examples. It won't change the project diffic Flere

$111 USD på 1 dag
(0 bedømmelser)