Move examples/*.sx and their expected/ snapshots into per-category subfolders (examples/<category>/...). Folder = leading filename token, with ffi-objc/ffi-jni kept whole; filenames are unchanged. The corpus runner and LSP sweep now discover each category's expected/ dir, while issues/ stays flat. Example 1058's repo-root-relative companion import is made file-relative. Path strings embedded in 164 snapshots were regenerated (path-only changes). Test-layout docs in CLAUDE.md updated.
22 lines
681 B
Plaintext
22 lines
681 B
Plaintext
// Phase 2 step 2.16a (PLAN-FFI.md): xfail then green for the
|
|
// `#jni_env(env) { body }` block-form intrinsic.
|
|
//
|
|
// Scopes a JNIEnv* over a lexical block. Step 2.16a lands parser +
|
|
// AST + sema acceptance — the body runs as a normal block, the env
|
|
// arg is captured but not yet used at lowering. The TL push/pop
|
|
// semantics (step 2.16b) and lexical-direct resolution in `#jni_call`
|
|
// (step 2.16c) follow.
|
|
//
|
|
// Today the lexer doesn't recognise `#jni_env` and the parser errors
|
|
// at the unknown directive token.
|
|
|
|
#import "modules/std.sx";
|
|
|
|
main :: () -> i32 {
|
|
synth_env : *void = null;
|
|
#jni_env(synth_env) {
|
|
print("inside #jni_env scope\n");
|
|
}
|
|
0
|
|
}
|