Home /Modules/nordshrift/03-library-bridge.md

03-library-bridge.md

lib/nordshrift/tutorials/03-library-bridge.md · 24 line(s) · markdown

Nordshrift Tutorial 03 — The /lib Compiler Bridge

SST and Nordshrift use the same library index as the SLeeLa compiler.

                 /lib
                  |
        +---------+---------+
        |                   |
   Nordshrift           SLeeLa Compiler
        |                   |
        +---------+---------+
                  |
             same symbols

This prevents a class from being visible to the compiler but invisible to Nordshrift.

An SST document referencing vm.SleelaVMCompilerManager is resolved through the shared index; Nordshrift does not copy the VM package into a private registry.

Exercise

Trace one /lib class from source path to package-qualified symbol and generated SLeeLa.