You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/cheatsheet.md
+12Lines changed: 12 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -958,6 +958,7 @@ unreachable(); // trap
958
958
959
959
// core:cli
960
960
use { println, eprintln, print, eprint, Stdout, Stderr } from "core:cli";
961
+
use { log_stdout, log_stderr } from "core:cli"; // no effect required (debug only)
961
962
962
963
// core:collections - TreeMap, TreeSet
963
964
use { TreeMap, TreeSet } from "core:collections";
@@ -1087,6 +1088,17 @@ let icon = #include_bytes("./icon.png"); // include file as Array<u8>
1087
1088
1088
1089
Paths in `#include_str` and `#include_bytes` are resolved relative to the source file. See [WEP: Compile-Time File Inclusion](./wep-2026-03-02-include-str.md).
1089
1090
1091
+
## Debugging
1092
+
1093
+
```wado
1094
+
use { log_stdout, log_stderr } from "core:cli";
1095
+
1096
+
log_stdout(`value = {x}`); // prints to stdout without Stdout effect
1097
+
log_stderr(`value = {x}`); // prints to stderr without Stderr effect
1098
+
```
1099
+
1100
+
`log_stdout` and `log_stderr` bypass the effect system. They are intended for temporary debugging output that can be called from any function regardless of its effect declarations.
Copy file name to clipboardExpand all lines: package-gale/AGENTS.md
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -97,6 +97,10 @@ Commit the updated golden files.
97
97
98
98
`runtime.wado` is included verbatim into every generated file via `#include_str` in `generator.wado`. It must remain self-contained (no imports from other source files). See [WEP: Compile-Time File Inclusion](../docs/wep-2026-03-02-include-str.md).
99
99
100
+
## Generated Parser Rules
101
+
102
+
-**No backtracking in new code.** Use static k-token lookahead prediction to disambiguate alternatives. If prediction cannot resolve within depth 5, file an issue rather than adding backtracking. Existing backtracking sites are being migrated to prediction; do not add new ones.
103
+
100
104
## On-Task-Done
101
105
102
106
When completing a task, run from the project root:
0 commit comments