compiler/backend/jsbackend

  Source   Edit

The code-generation orchestrator for the JavaScript backend. Takes the semantically analysed AST of the whole program, generates the JavaScript code for it (delegated to jsgen), and assembles everything into a single JavaScript file.

Procs

proc generateCode(graph: ModuleGraph; mlist: sink ModuleList) {....raises: [
    KeyError, Exception, ERecoverableError, ValueError, IOError, OSError], tags: [
    ReadDirEffect, RootEffect, WriteIOEffect, WriteDirEffect, ReadIOEffect].}
Entry point into the JS backend. Generates the code for all modules and writes it to the output file.   Source   Edit