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
This prints the wrappability status and blocker list for each input file.
203
+
The JSON readiness payload keeps `wrappable` at file level and includes
204
+
`unit_blockers` only for procedure/type/file units that own a blocker.
203
205
204
206
### Example 4: semantic IR JSON output
205
207
@@ -463,12 +465,18 @@ helpers parse variables, procedure arguments/results, and type fields, then
463
465
push them into the active scope. Procedure execution bodies and internal
464
466
subprograms are ignored for wrapper metadata; procedure-local interfaces are
465
467
retained for callback typing.
466
-
Parameter variables keep both `value` (best resolved value) and runtime
467
-
`symbolic_value` (the original expression) when the parser has that information.
468
+
Parameter variables keep both `value` and serialized `symbolic_value` when the
469
+
parser has that information. `value` is literal/evaluated only; if an
470
+
initializer cannot be evaluated safely, `value` is `None` and
471
+
`symbolic_value` keeps the original expression.
468
472
Module-level parameters used in procedure argument shapes remain symbolic in
469
473
the signature while still being valid scoped references for readiness checks.
470
474
471
475
The semantics layer consumes `FortranFile`/`FortranModule` objects and projects them into language-independent semantic IR (`SemanticModule`, `SemanticFunction`, `SemanticClass`, `SemanticType`). This keeps the semantic API model independent from parser internals, matching the project goal that parser output is a helper and the semantic interface/IR is the source of truth.
476
+
For compiler-specific constants, use
477
+
`collect_semantic_compile_time_requirements(parsed)` to extract unresolved
478
+
values and pass a dictionary to semantic conversion via
479
+
`compile_time_values`.
472
480
473
481
For Fortran `use` imports, the parser stores each explicit imported symbol as a
474
482
source/target mapping. A non-renamed `use iso_c_binding, only: c_int` maps
0 commit comments