# taewook427/csaitest architecture

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

- Interactive diagram: https://gitdiagram.com/taewook427/csaitest
- Repository: https://github.com/taewook427/csaitest

## Overview

This repository is a collection of programming and AI practice examples, not one integrated application. Its useful user-to-result workflows are the standalone language tools: provide source to a compiler or interpreter, which parses or compiles it and then executes it. The AIML directory contains separate exercises and project-stage scripts, including a handwritten-digit neural-network implementation. Groups reflect the README’s three subject areas. Some subsystem paths are directory-level because their source was not sampled; connections are shown only where the excerpts or SOURCE INDEX support them.

Main entry points: [`System/bkscript2/main.cpp`](https://github.com/taewook427/csaitest/blob/main/System/bkscript2/main.cpp) (BKScript Driver), [`System/만들면서 배우는 컴파일러 첫걸음/main.c`](https://github.com/taewook427/csaitest/blob/main/System/%EB%A7%8C%EB%93%A4%EB%A9%B4%EC%84%9C%20%EB%B0%B0%EC%9A%B0%EB%8A%94%20%EC%BB%B4%ED%8C%8C%EC%9D%BC%EB%9F%AC%20%EC%B2%AB%EA%B1%B8%EC%9D%8C/main.c) (Compiler Driver), [`System/만들면서 배우는 컴파일러 첫걸음/compile.c`](https://github.com/taewook427/csaitest/blob/main/System/%EB%A7%8C%EB%93%A4%EB%A9%B4%EC%84%9C%20%EB%B0%B0%EC%9A%B0%EB%8A%94%20%EC%BB%B4%ED%8C%8C%EC%9D%BC%EB%9F%AC%20%EC%B2%AB%EA%B1%B8%EC%9D%8C/compile.c) (Compiler Parser), [`AIML/StudentStudy/test671.py`](https://github.com/taewook427/csaitest/blob/main/AIML/StudentStudy/test671.py) (MNIST Network Ops)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_aiml["AI and ML"]
  node_aiml_examples["AI Exercises"]
  node_aiml_projects["BootCamp Project"]
  node_mnist_data["MNIST Binary Data"]
  node_mnist_network["MNIST Network Ops<br/>[test671.py]"]
  node_mnist_experiment["MNIST Exercise<br/>[test672.py]"]
end

subgraph group_language["Language Practice"]
  node_language_c["C Examples"]
  node_language_java["Java Examples"]
  node_android_example["Android Example<br/>[MainActivity.java]"]
end

subgraph group_system["System Tools"]
  node_bk_runtime["BKScript Driver<br/>[main.cpp]"]
  node_bk_tokens["BK Tokenizer<br/>[token.cpp]"]
  node_bk_compiler["BK Compiler<br/>[compile.cpp]"]
  node_bk_executor["BK Executor<br/>[execute.cpp]"]
  node_bbi_frontend["BBI Front End"]
  node_bbi_parser["BBI Parser<br/>[bbi_pars.cpp]"]
  node_bbi_execution["BBI Execution<br/>[bbi_code.cpp]"]
  node_compiler_driver["Compiler Driver<br/>[main.c]"]
  node_compiler_source["Source Scanner<br/>[getSource.c]"]
  node_compiler_parser["Compiler Parser<br/>[compile.c]"]
  node_compiler_codegen["Code Generation<br/>[codegen.c]"]
end

node_learner(("Learner"))
node_bk_user(("Script User"))
node_bbi_user(("Interpreter User"))
node_compiler_user(("Compiler User"))

node_learner -.->|"runs exercises"| node_aiml_examples
node_learner -.->|"uses project scripts"| node_aiml_projects
node_mnist_data -->|"loads data"| node_mnist_network
node_mnist_network -->|"imported by"| node_mnist_experiment
node_learner -.->|"practices C"| node_language_c
node_learner -.->|"practices Java"| node_language_java
node_learner -.->|"runs example"| node_android_example
node_bk_user -->|"provides source"| node_bk_runtime
node_bk_runtime -->|"tokenizes source"| node_bk_tokens
node_bk_runtime -->|"compiles tokens"| node_bk_compiler
node_bk_runtime -->|"executes code"| node_bk_executor
node_bbi_user -.->|"provides program"| node_bbi_frontend
node_bbi_frontend -.->|"parses source"| node_bbi_parser
node_bbi_parser -.->|"builds internal code"| node_bbi_execution
node_compiler_user -->|"provides source"| node_compiler_driver
node_compiler_driver -->|"opens source"| node_compiler_source
node_compiler_driver -->|"compiles source"| node_compiler_parser
node_compiler_driver -->|"executes compiled code"| node_compiler_codegen
node_compiler_parser -->|"reads tokens"| node_compiler_source
node_compiler_parser -->|"emits instructions"| node_compiler_codegen

click node_aiml_examples "https://github.com/taewook427/csaitest/tree/main/AIML/BootCamp"
click node_aiml_projects "https://github.com/taewook427/csaitest/tree/main/AIML/BootCamp/%ED%94%84%EB%A1%9C%EC%A0%9D%ED%8A%B8"
click node_mnist_network "https://github.com/taewook427/csaitest/blob/main/AIML/StudentStudy/test671.py"
click node_mnist_experiment "https://github.com/taewook427/csaitest/blob/main/AIML/StudentStudy/test672.py"
click node_language_c "https://github.com/taewook427/csaitest/tree/main/Language/C"
click node_language_java "https://github.com/taewook427/csaitest/tree/main/Language/JAVA"
click node_android_example "https://github.com/taewook427/csaitest/blob/main/Language/android_hello/MainActivity.java"
click node_bk_runtime "https://github.com/taewook427/csaitest/blob/main/System/bkscript2/main.cpp"
click node_bk_tokens "https://github.com/taewook427/csaitest/blob/main/System/bkscript2/token.cpp"
click node_bk_compiler "https://github.com/taewook427/csaitest/blob/main/System/bkscript2/compile.cpp"
click node_bk_executor "https://github.com/taewook427/csaitest/blob/main/System/bkscript2/execute.cpp"
click node_bbi_frontend "https://github.com/taewook427/csaitest/tree/main/System/%EB%A7%8C%EB%93%A4%EB%A9%B4%EC%84%9C%20%EB%B0%B0%EC%9A%B0%EB%8A%94%20%EC%9D%B8%ED%84%B0%ED%94%84%EB%A6%AC%ED%84%B0"
click node_bbi_parser "https://github.com/taewook427/csaitest/blob/main/System/%EB%A7%8C%EB%93%A4%EB%A9%B4%EC%84%9C%20%EB%B0%B0%EC%9A%B0%EB%8A%94%20%EC%9D%B8%ED%84%B0%ED%94%84%EB%A6%AC%ED%84%B0/bbi_pars.cpp"
click node_bbi_execution "https://github.com/taewook427/csaitest/blob/main/System/%EB%A7%8C%EB%93%A4%EB%A9%B4%EC%84%9C%20%EB%B0%B0%EC%9A%B0%EB%8A%94%20%EC%9D%B8%ED%84%B0%ED%94%84%EB%A6%AC%ED%84%B0/bbi_code.cpp"
click node_compiler_driver "https://github.com/taewook427/csaitest/blob/main/System/%EB%A7%8C%EB%93%A4%EB%A9%B4%EC%84%9C%20%EB%B0%B0%EC%9A%B0%EB%8A%94%20%EC%BB%B4%ED%8C%8C%EC%9D%BC%EB%9F%AC%20%EC%B2%AB%EA%B1%B8%EC%9D%8C/main.c"
click node_compiler_source "https://github.com/taewook427/csaitest/blob/main/System/%EB%A7%8C%EB%93%A4%EB%A9%B4%EC%84%9C%20%EB%B0%B0%EC%9A%B0%EB%8A%94%20%EC%BB%B4%ED%8C%8C%EC%9D%BC%EB%9F%AC%20%EC%B2%AB%EA%B1%B8%EC%9D%8C/getSource.c"
click node_compiler_parser "https://github.com/taewook427/csaitest/blob/main/System/%EB%A7%8C%EB%93%A4%EB%A9%B4%EC%84%9C%20%EB%B0%B0%EC%9A%B0%EB%8A%94%20%EC%BB%B4%ED%8C%8C%EC%9D%BC%EB%9F%AC%20%EC%B2%AB%EA%B1%B8%EC%9D%8C/compile.c"
click node_compiler_codegen "https://github.com/taewook427/csaitest/blob/main/System/%EB%A7%8C%EB%93%A4%EB%A9%B4%EC%84%9C%20%EB%B0%B0%EC%9A%B0%EB%8A%94%20%EC%BB%B4%ED%8C%8C%EC%9D%BC%EB%9F%AC%20%EC%B2%AB%EA%B1%B8%EC%9D%8C/codegen.c"

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_aiml_examples,node_aiml_projects,node_mnist_data,node_mnist_network,node_mnist_experiment,node_bk_user,node_bbi_user,node_compiler_user toneBlue
class node_language_c,node_language_java,node_android_example toneAmber
class node_bk_runtime,node_bk_tokens,node_bk_compiler,node_bk_executor,node_bbi_frontend,node_bbi_parser,node_bbi_execution,node_compiler_driver,node_compiler_source,node_compiler_parser,node_compiler_codegen toneMint
class node_learner toneIndigo
```

## Components

### AI and ML

- [AI Exercises](https://github.com/taewook427/csaitest/tree/main/AIML/BootCamp): `AIML/BootCamp`
- [BootCamp Project](https://github.com/taewook427/csaitest/tree/main/AIML/BootCamp/%ED%94%84%EB%A1%9C%EC%A0%9D%ED%8A%B8): `AIML/BootCamp/프로젝트`
- **MNIST Binary Data**
- [MNIST Network Ops](https://github.com/taewook427/csaitest/blob/main/AIML/StudentStudy/test671.py): `AIML/StudentStudy/test671.py`
- [MNIST Exercise](https://github.com/taewook427/csaitest/blob/main/AIML/StudentStudy/test672.py): `AIML/StudentStudy/test672.py`

### Language Practice

- [C Examples](https://github.com/taewook427/csaitest/tree/main/Language/C): `Language/C`
- [Java Examples](https://github.com/taewook427/csaitest/tree/main/Language/JAVA): `Language/JAVA`
- [Android Example](https://github.com/taewook427/csaitest/blob/main/Language/android_hello/MainActivity.java): `Language/android_hello/MainActivity.java`

### System Tools

- [BKScript Driver](https://github.com/taewook427/csaitest/blob/main/System/bkscript2/main.cpp): `System/bkscript2/main.cpp`
- [BK Tokenizer](https://github.com/taewook427/csaitest/blob/main/System/bkscript2/token.cpp): `System/bkscript2/token.cpp`
- [BK Compiler](https://github.com/taewook427/csaitest/blob/main/System/bkscript2/compile.cpp): `System/bkscript2/compile.cpp`
- [BK Executor](https://github.com/taewook427/csaitest/blob/main/System/bkscript2/execute.cpp): `System/bkscript2/execute.cpp`
- [BBI Front End](https://github.com/taewook427/csaitest/tree/main/System/%EB%A7%8C%EB%93%A4%EB%A9%B4%EC%84%9C%20%EB%B0%B0%EC%9A%B0%EB%8A%94%20%EC%9D%B8%ED%84%B0%ED%94%84%EB%A6%AC%ED%84%B0): `System/만들면서 배우는 인터프리터`
- [BBI Parser](https://github.com/taewook427/csaitest/blob/main/System/%EB%A7%8C%EB%93%A4%EB%A9%B4%EC%84%9C%20%EB%B0%B0%EC%9A%B0%EB%8A%94%20%EC%9D%B8%ED%84%B0%ED%94%84%EB%A6%AC%ED%84%B0/bbi_pars.cpp): `System/만들면서 배우는 인터프리터/bbi_pars.cpp`
- [BBI Execution](https://github.com/taewook427/csaitest/blob/main/System/%EB%A7%8C%EB%93%A4%EB%A9%B4%EC%84%9C%20%EB%B0%B0%EC%9A%B0%EB%8A%94%20%EC%9D%B8%ED%84%B0%ED%94%84%EB%A6%AC%ED%84%B0/bbi_code.cpp): `System/만들면서 배우는 인터프리터/bbi_code.cpp`
- [Compiler Driver](https://github.com/taewook427/csaitest/blob/main/System/%EB%A7%8C%EB%93%A4%EB%A9%B4%EC%84%9C%20%EB%B0%B0%EC%9A%B0%EB%8A%94%20%EC%BB%B4%ED%8C%8C%EC%9D%BC%EB%9F%AC%20%EC%B2%AB%EA%B1%B8%EC%9D%8C/main.c): `System/만들면서 배우는 컴파일러 첫걸음/main.c`
- [Source Scanner](https://github.com/taewook427/csaitest/blob/main/System/%EB%A7%8C%EB%93%A4%EB%A9%B4%EC%84%9C%20%EB%B0%B0%EC%9A%B0%EB%8A%94%20%EC%BB%B4%ED%8C%8C%EC%9D%BC%EB%9F%AC%20%EC%B2%AB%EA%B1%B8%EC%9D%8C/getSource.c): `System/만들면서 배우는 컴파일러 첫걸음/getSource.c`
- [Compiler Parser](https://github.com/taewook427/csaitest/blob/main/System/%EB%A7%8C%EB%93%A4%EB%A9%B4%EC%84%9C%20%EB%B0%B0%EC%9A%B0%EB%8A%94%20%EC%BB%B4%ED%8C%8C%EC%9D%BC%EB%9F%AC%20%EC%B2%AB%EA%B1%B8%EC%9D%8C/compile.c): `System/만들면서 배우는 컴파일러 첫걸음/compile.c`
- [Code Generation](https://github.com/taewook427/csaitest/blob/main/System/%EB%A7%8C%EB%93%A4%EB%A9%B4%EC%84%9C%20%EB%B0%B0%EC%9A%B0%EB%8A%94%20%EC%BB%B4%ED%8C%8C%EC%9D%BC%EB%9F%AC%20%EC%B2%AB%EA%B1%B8%EC%9D%8C/codegen.c): `System/만들면서 배우는 컴파일러 첫걸음/codegen.c`

### Other components

- **Learner**
- **Script User**
- **Interpreter User**
- **Compiler User**

## Connections

- Learner → AI Exercises: runs exercises
- Learner → BootCamp Project: uses project scripts
- MNIST Binary Data → MNIST Network Ops: loads data (evidence: `AIML/StudentStudy/test671.py`)
- MNIST Network Ops → MNIST Exercise: imported by (evidence: `AIML/StudentStudy/test672.py`)
- Learner → C Examples: practices C
- Learner → Java Examples: practices Java
- Learner → Android Example: runs example
- Script User → BKScript Driver: provides source (evidence: `System/bkscript2/main.cpp`)
- BKScript Driver → BK Tokenizer: tokenizes source (evidence: `System/bkscript2/main.cpp`)
- BKScript Driver → BK Compiler: compiles tokens (evidence: `System/bkscript2/main.cpp`)
- BKScript Driver → BK Executor: executes code (evidence: `System/bkscript2/main.cpp`)
- Interpreter User → BBI Front End: provides program
- BBI Front End → BBI Parser: parses source (evidence: `System/만들면서 배우는 인터프리터/bbi_pars.cpp`)
- BBI Parser → BBI Execution: builds internal code
- Compiler User → Compiler Driver: provides source (evidence: `System/만들면서 배우는 컴파일러 첫걸음/main.c`)
- Compiler Driver → Source Scanner: opens source (evidence: `System/만들면서 배우는 컴파일러 첫걸음/main.c`)
- Compiler Driver → Compiler Parser: compiles source (evidence: `System/만들면서 배우는 컴파일러 첫걸음/main.c`)
- Compiler Driver → Code Generation: executes compiled code (evidence: `System/만들면서 배우는 컴파일러 첫걸음/main.c`)
- Compiler Parser → Source Scanner: reads tokens
- Compiler Parser → Code Generation: emits instructions
