dan sinclair | accc687 | 2023-02-20 09:56:29 +0000 | [diff] [blame] | 1 | # Tint Source Layering |
| 2 | |
| 3 | The `BUILD.gn` is setup with small source units for various components |
| 4 | in Tint. The hierarchy of sources almost matches to folder structure in |
| 5 | tint (except for `base` which is a mix of things in `src/tint` and |
| 6 | `src/tint/util`. |
| 7 | |
| 8 | |
| 9 | ``` |
| 10 | +-----------------------------------------+ |
| 11 | | Readers | Writers | |
| 12 | +-----------------------------------------+ |
| 13 | | |
| 14 | V |
| 15 | +-----------------------------------------+ |
dan sinclair | c4cc6ec | 2023-04-13 21:17:12 +0000 | [diff] [blame] | 16 | | Val | Inspector | Transform | |
dan sinclair | accc687 | 2023-02-20 09:56:29 +0000 | [diff] [blame] | 17 | +-----------------------------------------+ |
| 18 | | | |
| 19 | +--------------+------------------------------+ |
| 20 | | | |
| 21 | V V |
| 22 | +-----------------------------------------+ +-----------+ |
| 23 | | AST | | Utils IO | |
| 24 | +-----------------------------------------+ +-----------+ |
| 25 | | | |
| 26 | V | |
| 27 | +-----------------------------------------+ | |
| 28 | | Program | Sem | | |
| 29 | +-----------------------------------------+ | |
| 30 | | | |
| 31 | V | |
| 32 | +-----------------------------------------+ | |
| 33 | | AST Hdrs | | |
| 34 | | (program and sem cause a cycle) | | |
| 35 | +-----------------------------------------+ | |
| 36 | | | |
| 37 | V | |
| 38 | +-----------------------------------------+ | |
| 39 | | Clone Context Hdrs | | |
| 40 | | (program and sem cause a cycle) | | |
| 41 | +-----------------------------------------+ | |
| 42 | | | |
| 43 | V | |
| 44 | +-----------------------------------------+ | |
| 45 | | Constant | | |
| 46 | +-----------------------------------------+ | |
| 47 | | | |
| 48 | V | |
| 49 | +-----------------------------------------+ | |
| 50 | | Types | | |
| 51 | +-----------------------------------------+ | |
| 52 | | | |
James Price | 91f9dd3 | 2023-07-19 12:52:56 +0000 | [diff] [blame] | 53 | V | |
| 54 | +-----------------------------------------+ | |
| 55 | | Builtin | | |
| 56 | +-----------------------------------------+ | |
| 57 | | | |
dan sinclair | accc687 | 2023-02-20 09:56:29 +0000 | [diff] [blame] | 58 | |------------------------------+ |
| 59 | V |
| 60 | +-----------------------------------------+ |
dan sinclair | d1d1bf7 | 2023-04-21 10:54:13 +0000 | [diff] [blame] | 61 | | Symbols | |
dan sinclair | accc687 | 2023-02-20 09:56:29 +0000 | [diff] [blame] | 62 | +-----------------------------------------+ |
| 63 | | |
| 64 | V |
| 65 | +-----------------------------------------+ +-------------+ |
dan sinclair | d1d1bf7 | 2023-04-21 10:54:13 +0000 | [diff] [blame] | 66 | | Utils | | Initializer | |
dan sinclair | accc687 | 2023-02-20 09:56:29 +0000 | [diff] [blame] | 67 | +-----------------------------------------+ +-------------+ |
| 68 | ``` |