Skip to main content

Module program

Module program 

Source
Expand description

Resolving one .fi program: its imports (each alias to the file the store read, in scope while its bodies are resolved), mappings (into Env::mappings), locals, events, processes and entry points, each in its own arena. A called foreign function joins Env::ffis at its first call, its signature lowered to fic’s types, and the store records where it is.

A program’s items are reachable only from that program, so their ids index the program’s arenas and need no PD beside them; a mapping, which a channel’s buffer has too, is the environment’s and names its PD. Events and processes each own the table of their body’s variables (body.rs).