Commit 511b658
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 0054d69 commit 511b658
178 files changed
Lines changed: 5305 additions & 6 deletions
File tree
- .changeset
- agent-feedback
- packages
- runtime-class/test/taglib-lookup/fixtures/getTagsSorted
- runtime-tags/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-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-input
- __snapshots__
- error-comptime-marko-import
- __snapshots__
- error-comptime-max-iterations
- __snapshots__
- error-comptime-plain-import
- __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 | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 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 | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
0 commit comments