docs: explain Whale typed calls and format 2 with runnable examples - #130
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Whale now represents function declarations, full calling signatures, and direct/indirect calls. The English and Korean references explain the declaration identity and link-name rules, evaluation order, exact call verification, typed null/invalid-target trap contract, and AST/typed IR format 2 migration.
The IR reference includes a complete compiled Rust example and its exact printed IR, AST call fragments, and links to a complete JSON lowering fixture with expected output. All existing module examples were updated to format 2 and explicit declaration IDs; the overview, AMD64 target and assembler/linker pages distinguish implemented IR support from pending native execution, runtime metadata and identity propagation through linking.
Implementation PR: wavefnd/Whale#237
Merge this documentation after the implementation so the master-linked schema and fixtures exist. These branches are in separate repositories; neither requires the other's code to build.
Validation: document and web-handler Go tests passed; 14 Rust examples compiled and ran; six complete CLI JSON examples and associated printed modules checked; diff checks passed. Only the 14 English/Korean Whale documents change. No site routing or application changes, rebuild, restart or deployment.