# udayashankars/tcl-scripting architecture

> Architecture diagram of the GitHub repository udayashankars/tcl-scripting, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-17). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/udayashankars/tcl-scripting
- Repository: https://github.com/udayashankars/tcl-scripting

## Overview

This repository is a collection of standalone Tcl learning examples, not a single application workflow. The README identifies language topics and a separate VLSI physical-design collection. Nodes represent the scripts themselves; no source excerpts were provided, so the graph does not infer calls or execution order between them. The README supports the examples’ reference role and the physical-design branch, but not relationships among individual scripts.

Main entry points: [`1 TCL script to display the characters one by one in the input string.tcl`](https://github.com/udayashankars/tcl-scripting/blob/main/1%20TCL%20script%20to%20display%20the%20characters%20one%20by%20one%20in%20the%20input%20string.tcl) (Display string characters), [`TCL Scripts for Physical Design`](https://github.com/udayashankars/tcl-scripting/tree/main/TCL%20Scripts%20for%20Physical%20Design) (Physical Design Scripts)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_strings["Strings"]
  node_characters["Display string characters<br/>script"]
  node_vowel_positions["Find vowel positions<br/>script"]
  node_case_convert["Convert letter case<br/>script"]
  node_word_count["Count string words<br/>script"]
  node_remove_vowels["Remove vowels<br/>script"]
  node_acronym["Create acronym<br/>script"]
  node_run_length["Run-length encode<br/>script"]
  node_capitalize["Capitalize words<br/>script"]
  node_palindrome["Check palindrome<br/>script"]
  node_string_length["Measure string length<br/>script"]
  node_whitespace["Remove whitespace<br/>script"]
  node_string_difference["Compare string difference<br/>script"]
end

subgraph group_collections["Lists and Arrays"]
  node_lists_stdin["Build list from input<br/>script"]
  node_array_invert["Invert array copy<br/>script"]
  node_list_length["Measure list length<br/>script"]
  node_list_length_alt["Measure list length<br/>script"]
  node_largest_pair["Compare paired list items<br/>script"]
  node_sort_array["Sort array entries<br/>script"]
  node_list_difference["Find list difference<br/>script"]
  node_list_compare["Compare list relationships<br/>script"]
  node_reverse_list["Reverse list items<br/>script"]
  node_dictionary["Check repeated dictionary values<br/>script"]
end

subgraph group_language["Tcl Language"]
  node_odd_nested["Nested odd-number decision<br/>script"]
  node_odd_nested_alt["Nested odd-number decision<br/>script"]
  node_multiples["Multiples loop<br/>script"]
  node_odd_break["Odd-number loop break<br/>script"]
  node_variable["Display variable<br/>script"]
  node_factorial["Recursive factorial namespace<br/>script"]
  node_factorial_iter["Iterative factorial<br/>script"]
  node_write_document["Write values to document<br/>script"]
  node_random_range["Generate ranged random values<br/>script"]
  node_binary_hex["Convert binary to hexadecimal<br/>script"]
end

subgraph group_files["File Operations"]
end

subgraph group_physical["Physical Design"]
  node_physical_scripts["Physical Design Scripts<br/>collection"]
end

node_learner(("Tcl learner<br/>actor"))

node_learner -->|"uses as reference"| node_characters
node_learner -->|"uses as reference"| node_physical_scripts

click node_odd_nested "https://github.com/udayashankars/tcl-scripting/blob/main/1%20SCRIPT%20FOR%20DISPLAY%20ODD%20NUMBER%20USING%20NESTED%20DECISION%20STATEMENTS.tcl"
click node_odd_nested_alt "https://github.com/udayashankars/tcl-scripting/blob/main/1.1%20SCRIPT%20FOR%20DISPLAY%20ODD%20NUMBER%20USING%20NESTED%20DECISION%20STATEMENTS.tcl"
click node_multiples "https://github.com/udayashankars/tcl-scripting/blob/main/2%20TCL%20script%20to%20create%20a%20nested%20loop%20to%20display%20multiples%20of%205%20and%2010.tcl"
click node_odd_break "https://github.com/udayashankars/tcl-scripting/blob/main/3%20TCL%20script%20to%20generate%20numbers%20from%200%20to%20100%20and%20break%20the%20loop%20when%20it%20reaches%20the%20last%20odd%20number.tcl"
click node_variable "https://github.com/udayashankars/tcl-scripting/blob/main/TCL%20script%20to%20display%20the%20value%20of%20variable%20%22var%22.tcl"
click node_factorial "https://github.com/udayashankars/tcl-scripting/blob/main/Namespace_factorial.tcl"
click node_factorial_iter "https://github.com/udayashankars/tcl-scripting/blob/main/factorial%20non-recursive.tcl"
click node_write_document "https://github.com/udayashankars/tcl-scripting/blob/main/TCL%20Procedure%20to%20write%201%20to%20100%20%26%20A%20to%20Z%20in%20document.tcl"
click node_characters "https://github.com/udayashankars/tcl-scripting/blob/main/1%20TCL%20script%20to%20display%20the%20characters%20one%20by%20one%20in%20the%20input%20string.tcl"
click node_vowel_positions "https://github.com/udayashankars/tcl-scripting/blob/main/2%20TCL%20script%20to%20display%20the%20positions%20of%20the%20vowels%20in%20string.tcl"
click node_case_convert "https://github.com/udayashankars/tcl-scripting/blob/main/3%20TCL%20script%20to%20convert%20the%20all%20upper%20to%20lower%20case%20and%20lower%20to%20upper%20case%20in%20string.tcl"
click node_word_count "https://github.com/udayashankars/tcl-scripting/blob/main/Count%20no%20of%20words%20in%20string.tcl"
click node_remove_vowels "https://github.com/udayashankars/tcl-scripting/blob/main/Removing%20Vowels%20from%20the%20String.tcl"
click node_acronym "https://github.com/udayashankars/tcl-scripting/blob/main/TCL%20Script%20to%20convert%20an%20input%20string%20to%20acronym.tcl"
click node_run_length "https://github.com/udayashankars/tcl-scripting/blob/main/TCL%20Script%20to%20perform%20run%20length%20Encoding.tcl"
click node_capitalize "https://github.com/udayashankars/tcl-scripting/blob/main/TCL%20script%20to%20change%20the%20first%20character%20of%20each%20word%20to%20upper%20case%20in%20a%20string.tcl"
click node_palindrome "https://github.com/udayashankars/tcl-scripting/blob/main/TCL%20script%20to%20check%20whether%20the%20input%20string%20is%20palindrome%20or%20not.tcl"
click node_string_length "https://github.com/udayashankars/tcl-scripting/blob/main/TCL%20script%20to%20find%20length%20of%20string%20without%20using%20command%20string%20length.tcl"
click node_whitespace "https://github.com/udayashankars/tcl-scripting/blob/main/TCL%20script%20to%20remove%20all%20white%20spaces%20in%20string.tcl"
click node_string_difference "https://github.com/udayashankars/tcl-scripting/blob/main/TCL%20script%20to%20find%20the%20difference%20between%20the%20two%20strings.tcl"
click node_lists_stdin "https://github.com/udayashankars/tcl-scripting/blob/main/CreateListfromStandardinput.tcl"
click node_array_invert "https://github.com/udayashankars/tcl-scripting/blob/main/2%20TCL%20script%20to%20display%20the%20inverted%20copy%20of%20array.tcl"
click node_list_length "https://github.com/udayashankars/tcl-scripting/blob/main/2%20TCL%20script%20to%20find%20the%20length%20of%20the%20list%20without%20using%20llength.tcl"
click node_list_length_alt "https://github.com/udayashankars/tcl-scripting/blob/main/TCL%20Scripting%20for%20finding%20length%20of%20List%20without%20llength.tcl"
click node_largest_pair "https://github.com/udayashankars/tcl-scripting/blob/main/3%20TCL%20script%20to%20pick%20two%20elements%20simultaneously%20in%20list%20and%20display%20the%20largest.tcl"
click node_sort_array "https://github.com/udayashankars/tcl-scripting/blob/main/3%20TCL%20script%20to%20sort%20the%20elements%20(index%20%26%20value)%20in%20the%20array.tcl"
click node_list_difference "https://github.com/udayashankars/tcl-scripting/blob/main/TCL%20script%20to%20find%20the%20difference%20between%20the%20two%20lists.tcl"
click node_list_compare "https://github.com/udayashankars/tcl-scripting/blob/main/TCL%20script%20to%20find%20two%20list%20are%20equal%20or%20sublist%20or%20superlists.tcl"
click node_reverse_list "https://github.com/udayashankars/tcl-scripting/blob/main/TCL%20script%20to%20print%20items%20in%20list%20in%20reverse%20order%20without%20lreverse.tcl"
click node_dictionary "https://github.com/udayashankars/tcl-scripting/blob/main/Script%20to%20check%20whether%20the%20dictionary%20has%20repeated%20values.tcl"
click node_random_range "https://github.com/udayashankars/tcl-scripting/blob/main/Script%20for%20display%20only%20the%20random%20generated%20numbers%20comes%20within%20the%20specified%20range.tcl"
click node_binary_hex "https://github.com/udayashankars/tcl-scripting/blob/main/TCL%20script%20to%20convert%20Binary%20to%20Hexadecimal.tcl"
click node_physical_scripts "https://github.com/udayashankars/tcl-scripting/tree/main/TCL%20Scripts%20for%20Physical%20Design"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_characters,node_vowel_positions,node_case_convert,node_word_count,node_remove_vowels,node_acronym,node_run_length,node_capitalize,node_palindrome,node_string_length,node_whitespace,node_string_difference toneBlue
class node_lists_stdin,node_array_invert,node_list_length,node_list_length_alt,node_largest_pair,node_sort_array,node_list_difference,node_list_compare,node_reverse_list,node_dictionary toneAmber
class node_odd_nested,node_odd_nested_alt,node_multiples,node_odd_break,node_variable,node_factorial,node_factorial_iter,node_write_document,node_random_range,node_binary_hex toneMint
class node_physical_scripts,node_learner toneIndigo
```

## Components

### Strings

- [Display string characters](https://github.com/udayashankars/tcl-scripting/blob/main/1%20TCL%20script%20to%20display%20the%20characters%20one%20by%20one%20in%20the%20input%20string.tcl): script · `1 TCL script to display the characters one by one in the input string.tcl`
- [Find vowel positions](https://github.com/udayashankars/tcl-scripting/blob/main/2%20TCL%20script%20to%20display%20the%20positions%20of%20the%20vowels%20in%20string.tcl): script · `2 TCL script to display the positions of the vowels in string.tcl`
- [Convert letter case](https://github.com/udayashankars/tcl-scripting/blob/main/3%20TCL%20script%20to%20convert%20the%20all%20upper%20to%20lower%20case%20and%20lower%20to%20upper%20case%20in%20string.tcl): script · `3 TCL script to convert the all upper to lower case and lower to upper case in string.tcl`
- [Count string words](https://github.com/udayashankars/tcl-scripting/blob/main/Count%20no%20of%20words%20in%20string.tcl): script · `Count no of words in string.tcl`
- [Remove vowels](https://github.com/udayashankars/tcl-scripting/blob/main/Removing%20Vowels%20from%20the%20String.tcl): script · `Removing Vowels from the String.tcl`
- [Create acronym](https://github.com/udayashankars/tcl-scripting/blob/main/TCL%20Script%20to%20convert%20an%20input%20string%20to%20acronym.tcl): script · `TCL Script to convert an input string to acronym.tcl`
- [Run-length encode](https://github.com/udayashankars/tcl-scripting/blob/main/TCL%20Script%20to%20perform%20run%20length%20Encoding.tcl): script · `TCL Script to perform run length Encoding.tcl`
- [Capitalize words](https://github.com/udayashankars/tcl-scripting/blob/main/TCL%20script%20to%20change%20the%20first%20character%20of%20each%20word%20to%20upper%20case%20in%20a%20string.tcl): script · `TCL script to change the first character of each word to upper case in a string.tcl`
- [Check palindrome](https://github.com/udayashankars/tcl-scripting/blob/main/TCL%20script%20to%20check%20whether%20the%20input%20string%20is%20palindrome%20or%20not.tcl): script · `TCL script to check whether the input string is palindrome or not.tcl`
- [Measure string length](https://github.com/udayashankars/tcl-scripting/blob/main/TCL%20script%20to%20find%20length%20of%20string%20without%20using%20command%20string%20length.tcl): script · `TCL script to find length of string without using command string length.tcl`
- [Remove whitespace](https://github.com/udayashankars/tcl-scripting/blob/main/TCL%20script%20to%20remove%20all%20white%20spaces%20in%20string.tcl): script · `TCL script to remove all white spaces in string.tcl`
- [Compare string difference](https://github.com/udayashankars/tcl-scripting/blob/main/TCL%20script%20to%20find%20the%20difference%20between%20the%20two%20strings.tcl): script · `TCL script to find the difference between the two strings.tcl`

### Lists and Arrays

- [Build list from input](https://github.com/udayashankars/tcl-scripting/blob/main/CreateListfromStandardinput.tcl): script · `CreateListfromStandardinput.tcl`
- [Invert array copy](https://github.com/udayashankars/tcl-scripting/blob/main/2%20TCL%20script%20to%20display%20the%20inverted%20copy%20of%20array.tcl): script · `2 TCL script to display the inverted copy of array.tcl`
- [Measure list length](https://github.com/udayashankars/tcl-scripting/blob/main/2%20TCL%20script%20to%20find%20the%20length%20of%20the%20list%20without%20using%20llength.tcl): script · `2 TCL script to find the length of the list without using llength.tcl`
- [Measure list length](https://github.com/udayashankars/tcl-scripting/blob/main/TCL%20Scripting%20for%20finding%20length%20of%20List%20without%20llength.tcl): script · `TCL Scripting for finding length of List without llength.tcl`
- [Compare paired list items](https://github.com/udayashankars/tcl-scripting/blob/main/3%20TCL%20script%20to%20pick%20two%20elements%20simultaneously%20in%20list%20and%20display%20the%20largest.tcl): script · `3 TCL script to pick two elements simultaneously in list and display the largest.tcl`
- [Sort array entries](https://github.com/udayashankars/tcl-scripting/blob/main/3%20TCL%20script%20to%20sort%20the%20elements%20(index%20%26%20value)%20in%20the%20array.tcl): script · `3 TCL script to sort the elements (index & value) in the array.tcl`
- [Find list difference](https://github.com/udayashankars/tcl-scripting/blob/main/TCL%20script%20to%20find%20the%20difference%20between%20the%20two%20lists.tcl): script · `TCL script to find the difference between the two lists.tcl`
- [Compare list relationships](https://github.com/udayashankars/tcl-scripting/blob/main/TCL%20script%20to%20find%20two%20list%20are%20equal%20or%20sublist%20or%20superlists.tcl): script · `TCL script to find two list are equal or sublist or superlists.tcl`
- [Reverse list items](https://github.com/udayashankars/tcl-scripting/blob/main/TCL%20script%20to%20print%20items%20in%20list%20in%20reverse%20order%20without%20lreverse.tcl): script · `TCL script to print items in list in reverse order without lreverse.tcl`
- [Check repeated dictionary values](https://github.com/udayashankars/tcl-scripting/blob/main/Script%20to%20check%20whether%20the%20dictionary%20has%20repeated%20values.tcl): script · `Script to check whether the dictionary has repeated values.tcl`

### Tcl Language

- [Nested odd-number decision](https://github.com/udayashankars/tcl-scripting/blob/main/1%20SCRIPT%20FOR%20DISPLAY%20ODD%20NUMBER%20USING%20NESTED%20DECISION%20STATEMENTS.tcl): script · `1 SCRIPT FOR DISPLAY ODD NUMBER USING NESTED DECISION STATEMENTS.tcl`
- [Nested odd-number decision](https://github.com/udayashankars/tcl-scripting/blob/main/1.1%20SCRIPT%20FOR%20DISPLAY%20ODD%20NUMBER%20USING%20NESTED%20DECISION%20STATEMENTS.tcl): script · `1.1 SCRIPT FOR DISPLAY ODD NUMBER USING NESTED DECISION STATEMENTS.tcl`
- [Multiples loop](https://github.com/udayashankars/tcl-scripting/blob/main/2%20TCL%20script%20to%20create%20a%20nested%20loop%20to%20display%20multiples%20of%205%20and%2010.tcl): script · `2 TCL script to create a nested loop to display multiples of 5 and 10.tcl`
- [Odd-number loop break](https://github.com/udayashankars/tcl-scripting/blob/main/3%20TCL%20script%20to%20generate%20numbers%20from%200%20to%20100%20and%20break%20the%20loop%20when%20it%20reaches%20the%20last%20odd%20number.tcl): script · `3 TCL script to generate numbers from 0 to 100 and break the loop when it reaches the last odd number.tcl`
- [Display variable](https://github.com/udayashankars/tcl-scripting/blob/main/TCL%20script%20to%20display%20the%20value%20of%20variable%20%22var%22.tcl): script · `TCL script to display the value of variable "var".tcl`
- [Recursive factorial namespace](https://github.com/udayashankars/tcl-scripting/blob/main/Namespace_factorial.tcl): script · `Namespace_factorial.tcl`
- [Iterative factorial](https://github.com/udayashankars/tcl-scripting/blob/main/factorial%20non-recursive.tcl): script · `factorial non-recursive.tcl`
- [Write values to document](https://github.com/udayashankars/tcl-scripting/blob/main/TCL%20Procedure%20to%20write%201%20to%20100%20%26%20A%20to%20Z%20in%20document.tcl): script · `TCL Procedure to write 1 to 100 & A to Z in document.tcl`
- [Generate ranged random values](https://github.com/udayashankars/tcl-scripting/blob/main/Script%20for%20display%20only%20the%20random%20generated%20numbers%20comes%20within%20the%20specified%20range.tcl): script · `Script for display only the random generated numbers comes within the specified range.tcl`
- [Convert binary to hexadecimal](https://github.com/udayashankars/tcl-scripting/blob/main/TCL%20script%20to%20convert%20Binary%20to%20Hexadecimal.tcl): script · `TCL script to convert Binary to Hexadecimal.tcl`

### Physical Design

- [Physical Design Scripts](https://github.com/udayashankars/tcl-scripting/tree/main/TCL%20Scripts%20for%20Physical%20Design): collection · `TCL Scripts for Physical Design`

### Other components

- **Tcl learner**: actor

## Connections

- Tcl learner → Display string characters: uses as reference (evidence: `README.md`)
- Tcl learner → Physical Design Scripts: uses as reference (evidence: `README.md`)
