Commit 3d5f5b8
committed
feat: comptime evaluation
`comptime` statements/imports and `-` prefixed tags (`<-if>`, `<-for>`,
`<-const>`, `<-log>`, `<-debug>`) evaluate while compiling and leave
only their expanded output. Values reach runtime through a resume-style
AST serializer; primitive reads fold into eagerly escaped static
output. Design doc: comptime.md.1 parent 00bf1ab commit 3d5f5b8
202 files changed
Lines changed: 5876 additions & 5 deletions
File tree
- .changeset
- agent-feedback
- packages
- runtime-class/test/taglib-lookup/fixtures/getTagsSorted
- runtime-tags
- scripts
- src
- __tests__
- fixtures
- comptime-at-tags
- __snapshots__
- tags/my-tabs
- comptime-fold
- __snapshots__
- comptime-for-interactive
- __snapshots__
- comptime-for
- __snapshots__
- comptime-if
- __snapshots__
- comptime-import
- __snapshots__
- util
- comptime-inert
- __snapshots__
- comptime-serialize
- __snapshots__
- comptime-statement
- __snapshots__
- util
- error-comptime-async
- __snapshots__
- error-comptime-define
- __snapshots__
- error-comptime-export
- __snapshots__
- error-comptime-for-by
- __snapshots__
- error-comptime-inert
- __snapshots__
- error-comptime-input
- __snapshots__
- error-comptime-marko-import
- __snapshots__
- error-comptime-max-iterations
- __snapshots__
- error-comptime-plain-import
- __snapshots__
- error-comptime-reserved
- __snapshots__
- error-comptime-return
- __snapshots__
- error-comptime-runtime-binding
- __snapshots__
- error-comptime-serialize
- __snapshots__
- error-comptime-userland
- __snapshots__
- translator
- comptime
- core
- visitors/program
- patches
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
157 | 157 | | |
158 | 158 | | |
159 | 159 | | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
5 | 11 | | |
6 | 12 | | |
7 | 13 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
219 | 219 | | |
220 | 220 | | |
221 | 221 | | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
0 commit comments