Merged
Conversation
johannes-wolf
requested changes
Dec 8, 2025
docs/simfil-dev-guide.md
Outdated
|
|
||
| ### Control flow and short-circuiting | ||
|
|
||
| Control-flow operators are implemented carefully to preserve simfil’s “truthy but value‑preserving” semantics. `AnyExpr` and `EachExpr` aggregate over a list of argument expressions; they rely on the `boolify` helper, which converts a `Value` to a boolean with the usual rules but treats `undef` as false. `AnyExpr` stops evaluation as soon as one argument evaluates to true and reports either `undef` (if no conclusive value was seen) or a boolean summarising the result. `EachExpr` behaves symmetrically: it halts on the first false argument and only returns true if all arguments evaluate to true and none to `undef`. |
Collaborator
There was a problem hiding this comment.
Remove this paragraph – too detailed.
|
johannes-wolf
approved these changes
Dec 9, 2025
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.



This PR introduces major new developer/architecture documentation.
Note: The mermaid diagrams also render natively in Github.
Note
Adds a comprehensive Developer Guide and relocates/refreshes the Language Guide under docs/, updating README links and anchors.
docs/simfil-dev-guide.md): Architecture overview, storage model, parser/evaluator pipeline, environment/extensibility, completion; includes mermaid diagrams.docs/simfil-language.md): Consolidates basics/operators/functions with minor wording tweaks and include markers; preserves examples and precedence tables.Written by Cursor Bugbot for commit 4c520fe. This will update automatically on new commits. Configure here.