ffi 2.5 green: name: Type; field body items in #jni_class

New `JniFieldDecl` AST struct (name + field_type); `JniClassMember`
gains a `field` variant. After consuming a member-name identifier
in the body loop, the parser branches on the next token: `:` →
field path (parse type expr + `;`), `::` → method path (existing).

`static` fields aren't part of the grammar yet and error explicitly
("static fields not yet supported"); only instance fields land here.
Lowering to JNI `Get<Type>Field` / `Set<Type>Field` arrives in 2.13.

124/124 examples green.
This commit is contained in:
agra
2026-05-20 10:05:30 +03:00
parent 1dee9ba67b
commit a703eeec2a
4 changed files with 27 additions and 6 deletions

View File

@@ -1 +1 @@
1
0

View File

@@ -1 +1 @@
/Users/agra/projects/sx/examples/ffi-jni-class-05-field.sx:12:6: error: expected '::'
parse-only ok