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

Taidot: Perl

Näytä lisää: 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, code read text file, java process text file, vba update file code share workbook, code source text file vb6, embed flv file code generator

Tietoa työnantajasta:
( 27 arvostelua ) beaverton, United States

Projektin tunnus: #13144276

3 freelanceria on tarjonnut keskimäärin %project_bid_stats_avg_sub_26% %project_currencyDetails_sign_sub_27% tähän työhön

$180 USD 2 päivässä
(1 arvostelu)

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 Lisää

$249 USD 3 päivässä
(3 arvostelua)

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 Lisää

$111 USD 1 päivässä
(0 arvostelua)