The lgc page defines the Logiweb compiler. A numbered version of the lgc.lgs source text is included here.
Also see the original, unnumbered lgs file, the main pdf, and the document root.